diff options
Diffstat (limited to 'testsuite/tests/parser/should_compile/read027.hs')
-rw-r--r-- | testsuite/tests/parser/should_compile/read027.hs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/read027.hs b/testsuite/tests/parser/should_compile/read027.hs new file mode 100644 index 0000000000..a6893450f8 --- /dev/null +++ b/testsuite/tests/parser/should_compile/read027.hs @@ -0,0 +1,14 @@ +module ShouldCompile where + +infix 5 |- +infix 9 := + +data Equal = Char := Int + +-- fails in GHC (all versions), due to not doing fixity resolution on +-- the lhs before deciding which is the function symbol. + +(|-) :: Int -> Equal -> Bool +0 |- x:=y = 1 |- x:=y -- XXX fails here +2 |- (x:=y) = 0 |- x:=y +_ |- _ = False |