-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace ~>
with NaturalTransformation
#991
Conversation
Current coverage is 81.99%
@@ master #991 diff @@
==========================================
Files 214 215 +1
Lines 2719 2704 -15
Methods 2655 2639 -16
Messages 0 0
Branches 59 60 +1
==========================================
- Hits 2407 2217 -190
- Misses 312 487 +175
Partials 0 0
|
@markus1189 thanks for bringing this up! Personally, I kind of prefer |
That's a good point, also currently there already is a mixture of I agree with you that it might be confusing to see |
@markus1189 I tend to agree with you that it's best to be consistent. I hate to ask you to fill in the hole that you have just taken the time to dig, but I'd be in favor of changing the I think the docs for |
43f7eb3
to
984f432
Compare
NaturalTransformation
with the shorter ~>
~>
with NaturalTransformation
Since no one else chimed in, I assume that we go for the replacement of symbolic |
`G[_]` (this particular transformation would be written as `F ~> G`). | ||
`G[_]` (this particular transformation would be written as | ||
`NaturalTransformation[F,G]` or as done here using the symbolic | ||
alternative as `F ~> G`). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here is the note in the tutorial
|
984f432
to
a706712
Compare
Whoops, missed that one ;) |
@markus1189 thanks for helping keep us consistent. I noticed that |
a706712
to
b085094
Compare
@ceedubs do you mean the ones in the tutorial for free monads? I think that it doesn't hurt to have Other than that I only found occurrences of |
@markus1189 I think I was thrown off by the fact that |
Sorry but this PR has merge conflicts. |
9fba2d5
to
2d99e00
Compare
Should be good to go now ;) |
👍 thanks, @markus1189! |
2d99e00
to
5d488b0
Compare
I'm 👍 on this change too. Unfortunately it has conflicts! |
5d488b0
to
dfd04f0
Compare
After having read
NaturalTransformation.scala
several times for reference, I found it much easier to read by replacingNaturalTransformation[A,B]
with the much betterA ~> B
.This pr replaces the occurrences where possible in
NaturalTransformation.scala
,Free.scala
andFreeApplicative.scala
.I am sure there are more places where you could do this, but I first wanted to check if this change is welcome at all ;)