On 8/13/07, David Roundy <[EMAIL PROTECTED]> wrote:

| Try executing:
|
|   do { x <- return 2; undefined; return (x*x); }
|
| in any monad you like

It's not just the identity monad:

Prelude> :m +Control.Monad.State
Prelude Control.Monad.State> flip evalState () $ do { x <- return 2;
undefined; return (x*x); }
4


Regards,

Arie

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to