mapM/concatMapMy

Richard ru@ohio.river.org
Mon, 23 Oct 2000 13:28:09 -0700 (PDT)


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