RE: Overlapping LHS and unused imports

1999-12-17 Thread Simon Peyton-Jones
| 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) ar

Overlapping LHS and unused imports

1999-12-15 Thread Sven Panne
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