Imperative Notation

Fergus Henderson fjh@cs.mu.oz.au
Wed, 10 Feb 1999 16:05:53 +1100


On 10-Feb-1999, Ana Maria Abrao <ana@ufu.br> wrote:
> By the way, if you want to use monads in Clean,
> it is as easy as in Haskell (I guess).

No, it's not quite as easy.  For one thing, in Haskell monads are part
of the standard library, whereas in Clean, as far as I am aware you
have to write them yourself.  The other reason is that Haskell has a
special "do" notation for monads, whereas in Clean you would have to
just use ">>", ">>=", etc., just like Haskell programmers had to do
before they added "do" notation to Haskell.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "Binaries may die
WWW: <http://www.cs.mu.oz.au/~fjh>  |   but source code lives forever"
PGP: finger fjh@128.250.37.3        |     -- leaked Microsoft memo.