Sengan Baring-Gould writes:

>Is >>= not lazy?

since no experts have answered yet, this newbie will answer.
I think it's strict.

somewhere in the compiler doco, IIRC, it says (>>=) was lazy at
first, but experience showed it was more confusing for users
(Haskell programmers).

moreover, from the hslibs documentation, LazyST chapter:
"The lazy ST monad tends to be more prone to space leaks than the
strict version, so most programmers will use the former unless
laziness is explicitly required."
http://haskell.org/ghc/docs/latest/set/sec-lazyst.html

_______________________________________________
Haskell mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/haskell

Reply via email to