4 ms·
Before trying to answer this question, it might be useful to see the reasons for using Monads along with examples in Phillip Wadler's Monads For Functional Prog
by codygman 11y ago
Before trying to answer this question, it might be useful to see the reasons for using Monads along with examples in Phillip Wadler's Monads For Functional Programming[0].
From there I like to go to "You could have invented monads!"[1].
Then you might want to checkout "Monads as computation"[2].
From there look at the huge guide of "All about monads[3].
If you are still confused you haven't made enough programs using monads yet. Try taking some of the examples (especially from [0]) and modifying them to do something else.
0: http://homepages.inf.ed.ac.uk/wadler/papers/marktoberdorf/baastad.pdf http://homepages.inf.ed.ac.uk/wadler/papers/marktoberdorf/ba...
1: http://blog.sigfpe.com/2006/08/you-could-have-invented-monads-and.html http://blog.sigfpe.com/2006/08/you-could-have-invented-monad...
2: https://wiki.haskell.org/Monads_as_computation https://wiki.haskell.org/Monads_as_computation
3: https://wiki.haskell.org/All_About_Monads#Introduction_2 https://wiki.haskell.org/All_About_Monads#Introduction_2