1 module ShouldCompile where
6 data Equal = Char := Int
8 -- fails in GHC 4.04, due to not doing fixity resolution on the lhs
9 -- before deciding which is the function symbol.
11 (|-) :: Int -> Equal -> Bool
12 0 |- x:=y = 1 |- x:=y -- XXX fails here
13 2 |- (x:=y) = 0 |- x:=y