[<<][compsci][>>][..]
Fri Oct 7 20:44:38 EDT 2011

Apply pure function in monad

Often I run into something like this:

      m >>= \x -> return $ f x

Often with `f' being a data constructor.  Does that have a name?

Indeed it does:

*Main> :t liftM
liftM :: Monad m => (a1 -> r) -> m a1 -> m r



[Reply][About]
[<<][compsci][>>][..]