|
|
|
|
|
by tel
4091 days ago
|
|
At the risk of being a little pedantic, >> isn't combining two functions, e.g. Just () >> Nothing == Nothing
Nothing >> Just () == Nothing
It's perhaps viable to think of (m >> f) as modifying/continuing the m effect/computation using a continuation which is constantly the f effect. But that's about as close to "combining two functions" I can get it without specifically picking a monad that is a function.On the other hand, >=> is absolutely combining two functions. It's exactly (flip (.)) in a Kleisli category over some monad. |
|