Sometimes the current GHC from the repository prints incorrect
warnings. Example:
-----------------------------------
module Foo where
bar :: String -> Int
bar "ab" = 1
bar "c" = 2
bar _ = 3
baz :: String -> Int
baz ('a':'b':[]) = 1
baz ('c':[]) = 2
baz _ = 3
-----------------------------------
panne@marutea:~/forschung/misc > ghc -Wall -O -c Foo.hs
Foo.hs:4: Pattern match(es) are overlapped in the definition of function `bar':
bar "c" = ...
Note that there is no warning for baz. IIRC this has been reported
and fixed some time ago. Deja vu? Did they change the matrix? %-)
And another one: -Wall (which includes -fwarn-unused-imports) doesn't
warn about explicitly imported but unused entities anymore. An example
can be given if needed.
Cheers,
Sven
--
Sven Panne Tel.: +49/89/2178-2235
LMU, Institut fuer Informatik FAX : +49/89/2178-2211
LFE Programmier- und Modellierungssprachen Oettingenstr. 67
mailto:[EMAIL PROTECTED] D-80538 Muenchen
http://www.informatik.uni-muenchen.de/~Sven.Panne