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

Haskell Nomads

Name: Anonymous 2008-09-23 13:47

So can anybody tell me in a way one can understand it what a fucking monad does?

Name: Anonymous 2008-09-25 21:09

>>45
1) They aren't related.
2) If you're talking about the do notation, that's just syntactic sugar.
3) That didn't make sense.

A monad is just a data type that implements these functions:

(>>=) :: Monad m => m a -> (a -> m b) -> m b
(>>) :: Monad m => m a -> m b
return :: Monad m => a -> m a

If you're looking for it to mean more than that, you're either trolling, crazy, or trying to drive yourself crazy.

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