Why are side-effects modeled as monads in Haskell?

Posted by bodacydo on Stack Overflow See other posts from Stack Overflow or by bodacydo
Published on 2010-03-21T20:47:28Z Indexed on 2010/03/21 20:51 UTC
Read the original article Hit count: 358

Filed under:
|

Could anyone give some pointers on why the unpure computations in Haskell are modeled as monads?

I mean monad is just an interface with 4 operations, so what was the reasoning as modeling side-effects in it?

© Stack Overflow or respective owner

Related posts about haskell

Related posts about monad