|
|
|
|
|
by tumult
5580 days ago
|
|
posting from phone monads are not for simulating side effects. they can model many things. functions are already composable with the dot (.). if you want to compose arbitrary structures, use Control.Category. unit does not have anything in particular to do with monads. 'bind' is specific to each monad and defines its behavior. there is no abstract or generic bind. the article didn't teach you anything. ask #Haskell on freenode if you have questions. |
|