Roel van Dijk <vandijk.r...@gmail.com> 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 ivan.miljeno...@gmail.com IvanMiljenovic.wordpress.com _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe