The "do" notation translates

do {x <- a;f}  into

a>>=(\x -> f)

However when we're working in the IO monad the semantics we want requires that 
the lambda expression be strict in its argument.  So is this a special case for 
IO?  If I wanted this behavior in other monads is there a way to specify that?

Victor

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

Reply via email to