
14 Apr
2010
14 Apr
'10
5:07 a.m.
Roel van Dijk
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.Miljenovic@gmail.com IvanMiljenovic.wordpress.com