[Haskell-beginners] Warnings from ghc

Manfred Lotz manfred.lotz at arcor.de
Sun Apr 3 17:24:52 CEST 2011


Hi there,
From my experiences in programming it is usually a good thing when
a compiler issues warnings because this shows me where in my code there
might be future problems hidden.


I found the following warnings especially important to be turned on:

-fwarn-incomplete-patterns
-fwarn-overlapping-patterns
-fwarn-name-shadowing 
-fwarn-unused-matches 
-fwarn-unused-do-bind 

I see that I could turn on all warnings with -Wall but that is a bit too
much. 


My question: what other options do people recommend to be turned on.



-- 
Manfred





More information about the Beginners mailing list