Roel van Dijk <[email protected]> writes:

> Can anyone provide an example of an error that is prevented by this
> warning? When exactly is it dangerous to ignore a monadic function's
> return value?

See Neil's original rationale in the bug report:
http://hackage.haskell.org/trac/ghc/ticket/3263

Short version: using something like mapM but disregarding the result
(rather than using mapM_) can sometimes lead to space leaks.

-- 
Ivan Lazar Miljenovic
[email protected]
IvanMiljenovic.wordpress.com
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to