tags:

views:

417

answers:

4

Haskell monad functions are not easy to understand, where can I find usage examples?

+1  A: 

You mean the functions with names like fooM and fooM_? You can understand them better possibly by reading their source code, or when you write a do-expression, you could think if that can be expressed with a relevant fooM-function.

You could also take a look at this question.

mattiast
+3  A: 

I wrote a case study called "Anatomy of a New Monad". Is this what you meant?

Paul Johnson
+2  A: 

The answer I was looking for is: [A tour of the Haskell monad functions][1]

But I'm still looking for something similar for the non standard monads.

[1]: http://members.chello.nl/hjgtuyl/tourdemonad.html A tour of the Haskell monad functions

+1  A: 

The new O'Reilly book Real World Haskell has some good chapters on monads, which include the kind of wacky ad hoc user-defined abstract monad function stuff you seem to be looking for.

comingstorm
You can find that book here: http://book.realworldhaskell.org/read/(Saving you a trip to Google :-)
Magnus