
30 Aug
2007
30 Aug
'07
5:11 p.m.
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...