All About Monads, A comprehensive guide to the theory and practice of monadic programming in Haskell.

Submitted by shapr on Wed, 02/23/2005 - 12:44pm.

Jeff Newbern's All About Monads is the best monad tutorial I've seen yet!

This tutorial starts with the most basic definition of a monad, and why you might want one. It covers most of the monad instances in the standard libraries, and also includes monad transformers. It wraps up nicely with links to Parsec, category theory, and arrows. You can read it online, or download as a zip file or tarball.

If you've been looking for a good monads tutorial, try this one first!

Submitted by itkovian on Thu, 02/24/2005 - 2:51pm.

I received a pdf version of the tutorial from ozone@#haskell, which I'll put up here

I checked with Jeff first, and he's ok with that. However, if you can be a bit patient, Jeff also said he's reworking the tutorial in docbook format, so he'll be able to generate an even nicer pdf.

Submitted by itkovian on Fri, 02/25/2005 - 4:12am.

After skimming through the pdf I mentioned above, I saw that in several code blocks something is either missing, or fell off the page. So I guess waiting till Jeff finishes up his version is maybe not a bad idea, if you want it perfect.

Submitted by genea on Fri, 12/30/2005 - 12:00pm.

Ah the mysterious Monad.. yup that is a great tutorial, and though I am not through it {even a first time} at least it is making a bit more sense and is a nice piece of work by it's author!

-- =================================================
-- text2words => gives all words in text-> one per line output
main = interact ( (foldr (++) "") . (map (++ "\n")) . (words)
-- text2words |sort |uniq sortedfile.uniq.wordlist

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.