-
-
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
Rename EitherT.liftT to EitherT.liftF #1947
Conversation
I like the change. I wonder if we should help migration by providing a deprecated alias, or scalafix? |
I think I have a scalafix rule implemented now, but how do I make it run against my locally build cats? |
You go into the scalafix folder and run the tests there :) |
I loved the scalafix, but can we have the alias as well, it's very cheap. |
To be consistent with OptionT.liftF.
Codecov Report
@@ Coverage Diff @@
## master #1947 +/- ##
==========================================
+ Coverage 95.57% 95.72% +0.14%
==========================================
Files 248 278 +30
Lines 4454 4860 +406
Branches 117 125 +8
==========================================
+ Hits 4257 4652 +395
- Misses 197 208 +11
Continue to review full report at Codecov.
|
* res1: cats.data.EitherT[Option,Nothing,Int] = EitherT(None) | ||
* }}} | ||
*/ | ||
final def liftF[F[_], A, B](fb: F[B])(implicit F: Functor[F]): EitherT[F, A, B] = right(fb) | ||
|
||
@deprecated("Use EitherT.liftF.", "1.0.0-MF") |
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.
Should this version be "1.0.0-RC1"?
All looking good. The scalafix should probably go to a different folder altogether. The current set of rules |
Aha, I just mimicked what was there already. Will take a look at fixing it tomorrow. |
sorry @aeons it was supposed to be a super straightforward PR. |
No problem, I don't mind trying out scalafix :) |
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.
👍 for the scalafix part.
scalafix/README.md
Outdated
If you only want to run the rules that apply to version `1.0.0-MF` run | ||
|
||
```sh | ||
sbt scalafix github:typelevel/cats/v1.0.0?sha=c131fe4 |
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.
The 1.0.0 update on master has not much practical use now since it's not released, how about we reorder the paragraphs to this?
to run the rules that apply to version 1.0.0-MF run
sbt scalafix github:typelevel/cats/v1.0.0?sha=c131fe4
to run all rules that apply to current 1.0.0-SNAPSHOT
sbt scalafix github:typelevel/cats/v1.0.0
We can update it again once we release 1.0.0-RC1
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.
Sounds good
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.
Thanks very much! Sorry for dragging it for this long for a straightforward change.
To be consistent with
OptionT.liftF
.Fixes #1945