[Haskell-cafe] let and fixed point operator

David Roundy daveroundy at gmail.com
Thu Aug 30 13:40:07 EDT 2007


On Thu, Aug 30, 2007 at 06:16:12PM +0100, Andrew Coppin wrote:
> Obviously you might very well have *meant* to write x = f x. But would 
> it be possible to add some kind of optional compiler warning to find 
> such assignments? It can be a nightmare trying to track down where you 
> made the mistake...

If you enable -Wall, ghc will warn you about this, provided that x was
already bound in this context.
-- 
David Roundy
http://www.darcs.net


More information about the Haskell-Cafe mailing list