Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Monads. How do they work?

Name: OP !!2za6AlFUZfp0425 2010-10-02 18:16

I'm reading "Learn you a haskell for great good." I've gotten through most of it but I want to learn about Monads.

What the fuck are they?
What is their purpose?
How do they work?

Name: Anonymous 2010-10-02 18:58

Sir—
Kindly note that it is good practice in /prog/ to sage1 each and every post. Please pay particular attention to avoid using imageboard jokes, as they subvert the subtle ways of /prog/ culture and are in general not very appreciated.

Also Monads are general abstract nonsense2. The purpose of the IO instance is to keep the filth of IO from infecting beautiful pure code by encapsulating it. The monad is quite simply a functor of a category to itself and it works as such3.

_______________________________________________
Notes:

1. noko is considered bad manners as it is not a sage !
2. http://en.wikipedia.org/wiki/Monad_(category_theory)
3. Note that Maybe is a Monad instance as much as [].

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List