[Haskell-cafe] A question about monad laws

Henning Thielemann schlepptop at henning-thielemann.de
Thu Jan 20 23:01:16 CET 2011


C K Kashyap schrieb:
> Hi,
> I am trying to get a better understanding of the "monad laws" - right
> now, it seems too obvious
> and pointless. I had similar feelings about identity function when I
> first saw it but understood its use
> when I saw it in action.
> Could someone please help me get a better understanding of the necessity
> of monads complying with these laws?
> I think, examples of somethings stop working if the monad does not obey
> these laws will help me understand it better.

http://www.haskell.org/haskellwiki/Monad_laws




More information about the Haskell-Cafe mailing list