-
-
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
Adding a way to create a Kleisli with just F[B] #1090
Conversation
Current coverage is 88.11%
@@ master #1090 diff @@
==========================================
Files 224 224
Lines 2844 2845 +1
Methods 2787 2792 +5
Messages 0 0
Branches 52 48 -4
==========================================
Hits 2507 2507
- Misses 337 338 +1
Partials 0 0
|
Personally I would be in favour of naming this |
@edmundnoble Thanks for the response. I was looking for a more appropriate name and |
I second the |
I think I'd be inclined to call this |
Okay, so I've changed the name to |
I think I will forego the |
👍 Thanks! |
I think that everywhere else that we have an analogous method on other monad transformers it's called |
Looking at similar methods on the other monad transformers there is no real consensus at the moment, probably because the methods on
Even though I like OptionT.liftF(List(1,2))
List(1,2).liftT[OptionT]
Kleisli.lift[List, Int, Int](List(1,2)) // ?
List(1,2).liftT[({type λ[α[_], β] = Kleisli[α, Int, β]})#λ] // -> liftKleisli[Int] ? |
@peterneyens thanks for the helpful writeup. It looks like I definitely didn't have the facts on my side when I claimed that this was |
I've renamed from |
👍 thanks! |
@non your 👍 was for |
👍 |
I'm new to Kleislis and found myself wanting a function like this. Scalaz has a
.liftKleisli
function, but I wasn't sure what would be preferred:Kleisli.pureF(fa)
orfa.liftKleisli
.