[Haskell-cafe] Re: ANN: First Monad Tutorial of the Season

Ben Franksen ben.franksen at online.de
Sun Aug 24 18:33:23 EDT 2008

Hans van Thiel wrote:
> so 'The Greenhorn's Guide to becoming a Monad Cowboy' is on
> http://www.muitovar.com/monad/moncow.xhtml

Forgot to say: nicely written!

Some more comments:

You can declare a fixity (infixr) for flop instead of using parentheses
(yes, this is allowed; see 'elem' in the Prelude). Would make the code more

"(Recall that a type definition is just like a data definition, but with no
choice operator (|).)" First, you mean to say 'newtype', not 'type' (as in
the code). Second, a newtype may also contain only one data element (i.e.
one type expression after the constructor), not many, as in a data type
definition. Third, newtype is unlifted.


More information about the Haskell-Cafe mailing list