To Kata Haskellen Evangelion - Learn Haskell the Easy Way

https://cosmius.bitbucket.io/tkhe/

The book is not finished yet, but worth reading.

9 Likes

page 72
liftM :: (Monad m) => (a -> b) -> m a -> m b
liftM f x = mx >>= \x -> return (f x)
should be
liftM :: (Monad m) => (a -> b) -> m a -> m b
liftM f mx = mx >>= \x -> return (f x)
per my understanding.