[Haskell-cafe] Request to review my attempt at understanding
ck_kashyap at yahoo.com
Tue Dec 29 05:07:11 EST 2009
> You should make a `Functor' instance since monads are all
> functors (though the typeclass does not enforce this).
What are the benefits of making it an instance of Functor?
> You can use `guard' and `when' and other monadic operations.
> The `MonadPlus' instance gives you access to `msum'. It's not
> just about `do' notation :)
I'd appreciate it very much if you could give me some pointers on the usages of guard, when and msum.
More information about the Haskell-Cafe