0

Possible Duplicate:
Can anyone explain Monads?

I don't really understand the purpose of making a typeclass for Monads, could someone explain this?

I realize what a Monad is, for the most part, in that it's a binary, commutative, associative function with an identity.

Other'n that, why are they useful?

Community
  • 1
  • 1
TaslemGuy
  • 584
  • 5
  • 13
  • I think this may be trying to ask something distinct from the question linked as "possible duplicate" but I'm not sure and it isn't clear as written. Also, I can't think of *anything* involving monads in general that would be described as commutative, so that's confusing too. – C. A. McCann Jan 31 '11 at 02:22
  • @camccann The first question the OP asks is actually a decent question; namely, why does Haskell provide a common interface to monads? There are several good answers to that which would have been provided. But Haskell *doesn't* provide an interface to abelian monoids, so no idea what happened there. – dvitek Jan 31 '11 at 02:53

0 Answers0