3 ms·
Perhaps I am too tainted. Monads can be motivated as a generalization of a lot of stuff that follows similar rules (the Monad laws). E.g. Lists, Haskell's May
by eru 18y ago
Perhaps I am too tainted.
Monads can be motivated as a generalization of a lot of stuff that follows similar rules (the Monad laws). E.g. Lists, Haskell's Maybe (representing success/failure), sequential computation.
- brl 18y agoAs a Haskell beginner it's not so easy to see the generalization between State, Maybe, IO, and especially Lists. This is exactly the problem.