GHC gives a false warning about overlapping patterns (-Wall):
f "ab" = 1
f ('c':_) = 2
Surprisingly, changing "ab" to ['a','b'] shuts up the warning.
The (correct) warning about non-exhaustive patterns says:
Patterns not matched: #x with #x `not_elem` ["ab"]
The Prelude function is called notElem, not not_elem. Also this message
is not accurate. Changing "ab" to ['a','b'] causes this message to be
more correct.
--
__("< Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
\__/ GCS/M d- s+:-- a22 C+++$ UL++>++++$ P+++ L++>++++$ E-
^^ W++ N+++ o? K? w(---) O? M- V? PS-- PE++ Y? PGP+ t
QRCZAK 5? X- R tv-- b+>++ DI D- G+ e>++++ h! r--%>++ y-