standardise on liftF and add liftK to transformers#2033
Conversation
| def apply[A](fa: F[A]): IndexedReaderWriterStateT[F, E, L, S, S, A] = IndexedReaderWriterStateT.liftF(fa) | ||
| } | ||
|
|
||
| @deprecated("Use liftF instead", "1.0.0-RC2") |
There was a problem hiding this comment.
There probably won't be a rc2, the next one is 1.0
There was a problem hiding this comment.
Yeah, wasn't quite sure. I'll fix tomorrow
|
Fixed the |
|
also need some mima exclusion
|
|
@kailuowang Any quick reference to how you exclude something from MiMa or should I RTFM? :) |
|
@SystemFw You can add them right here: https://github.com/typelevel/cats/blob/master/build.sbt#L212 :) |
|
Thanks a lot! @LukaJCB |
|
This is great. I've had to write the Is there a reason you're not using the kind-projector syntax? def liftK[F[_]](implicit F: Functor[F]): F ~> OptionT[F, ?] =
λ[F ~> OptionT[F, ?]](OptionT.liftF(_))(or |
|
@aeons Yes, http4s was the initial use case :) There's no reason for not using it, I might change it as I fix the other things |
4d4fbb2 to
e136974
Compare
|
I think I'm mostly done, except my scalafix test doesn't compile ( it's telling me that P.S. the error in the travis seems spurious |
|
the migration is for migrating from 0.9. ideally we need a new set of migration that migrates from 1.0 RC1, although I am not sure a simple rename in RWST justify that. I propose we just remove RWST from the test. |
Codecov Report
@@ Coverage Diff @@
## master #2033 +/- ##
==========================================
- Coverage 95.15% 94.98% -0.18%
==========================================
Files 305 311 +6
Lines 5184 5267 +83
Branches 125 122 -3
==========================================
+ Hits 4933 5003 +70
- Misses 251 264 +13
Continue to review full report at Codecov.
|
|
@kailuowang I think the errors are spurious and I should be done. The scalafix has fixes for both 0.9 and 1.0RC, the RC ones are not tested as discussed above |
|
Some of the builds fail with
should I address this? |
|
That seems odd, seems like an error during scaladoc compilation. Maybe someone else has an idea? |
|
Yeah, I reference |
|
I think it might be because |
|
I think we agree on what the problem is then :) |
|
Linking reference in scaladoc has always been problematic, the solutions people have been doing in the past, and I propose doing here, is to just remove the link. |
|
so just mapK rather than [[mapK]] ? Sounds good to me :) |
|
I need to fix the doctest for kleisli. It's the only bit of codecov that actually spotted a problem. Doing so right now |
|
If you're still interested in getting the scaladoc references working, you can prefix |
|
Close and reopen to trigger build |
This PR deprecates
lifton all transformers in favour ofliftF, and adds a FunctionK version namedliftK(for use withmapK).I'm leaving a possible scalafix to a separate PR.