[Haskell-cafe] Re: Monads aren't evil? I think they are.

Tim Newsham newsham at lava.net
Tue Jan 13 13:21:09 EST 2009


> I have seen several libraries where all functions of a monad have the
> monadic result (), e.g. Binary.Put and other writing functions. This is
> a clear indicator, that the Monad instance is artificial and was only
> chosen because of the 'do' notation.

Maybe that was the initial reason, but I've actually found the
Binary.Put.PutM (where Put = PutM ()) to be useful.  Sometimes
your putter does need to propogate a result...

Tim Newsham
http://www.thenewsh.com/~newsham/


More information about the Haskell-Cafe mailing list