In the
previous article I talked about the two fundamental monadic operations in
the Monad type class: the bind operator (>>=) and the return function. In
this article I'll complete the definition of the Monad type class and talk
about monad laws.
(
Read more )
Comments 4
Reply
Reply
-- Form 1.
-- mv :: m a
-- f :: a -> m b
mv >>= \x -> mf x
Maybe
mv >>= \x -> f x ?
I can't figure out why we have mf here,
Reply
Reply
Leave a comment