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
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
-
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