RnIfaces.lhs:931: Non-exhaustive patterns in case

1999-12-14 Thread Ilya Beylin
A very cryptic error message, probably referring to the source code of ghc itself. It was caused by an empty *.hi for an imported module which happened to be in the working directory. Side remark: if ghc still has run-time errors, why doesn't it decorate them to make obvously different from the

infix constructor in a pattern

1999-12-14 Thread Ilya Beylin
The following code is accepted by hugs and hbc, but produces an error in ghc-4.04-1 - module Bug where infix 5 |- infix 9 := data Equal = Char := Int (|-) :: Int - Equal - Bool 0 |- x:=y = 1 |- x:=y 2 |- (x:=y) = 0 |- x:=y _ |- _ = False -

RE: infix constructor in a pattern

1999-12-14 Thread Simon Marlow
The following code is accepted by hugs and hbc, but produces an error in ghc-4.04-1 - module Bug where infix 5 |- infix 9 := data Equal = Char := Int (|-) :: Int - Equal - Bool 0 |- x:=y = 1 |- x:=y 2 |- (x:=y) = 0 |- x:=y _ |- _ = False