Ah yes. That was caused by a recent rep change in NPat, which I had not propagated to the overlap checker. Fixed now. Thanks.
Simon | -----Original Message----- | From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ian Lynagh | Sent: 19 July 2005 22:59 | To: [EMAIL PROTECTED] | Subject: Bad overlapping patterns warning with CInts | | | With an up-to-date HEAD ghc I'm getting bogus overlapping patterns for | CInts: | | $ cat L.hs | | module L where | | import Foreign.C (CInt) | | foo :: CInt -> Char | foo i = case i of | 0 -> 'a' | 1 -> 'b' | 2 -> 'c' | -1 -> 'd' | -2 -> 'e' | -3 -> 'f' | _ -> 'g' | | $ ghc -Wall -Werror -c L.hs | | L.hs:7:8: | Warning: Pattern match(es) are overlapped | In a case alternative: | 1 -> ... | 2 -> ... | | | Thanks | Ian | | _______________________________________________ | Cvs-ghc mailing list | [EMAIL PROTECTED] | http://www.haskell.org/mailman/listinfo/cvs-ghc _______________________________________________ Cvs-ghc mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/cvs-ghc
