[Haskell-cafe] let and fixed point operator

Andrew Coppin andrewcoppin at btinternet.com
Thu Aug 30 17:11:02 EDT 2007

David Roundy wrote:
> 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.

Most excellent. GHC saves the day again...

More information about the Haskell-Cafe mailing list