summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/read002.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_compile/read002.hs')
-rw-r--r--testsuite/tests/parser/should_compile/read002.hs14
1 files changed, 14 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/read002.hs b/testsuite/tests/parser/should_compile/read002.hs
new file mode 100644
index 0000000000..5b069fe2c6
--- /dev/null
+++ b/testsuite/tests/parser/should_compile/read002.hs
@@ -0,0 +1,14 @@
+-- !!! tests fixity reading and printing
+module ShouldCompile where
+
+infixl 1 `f`
+infixr 2 \\\
+infix 3 :==>
+infix 4 `MkFoo`
+
+data Foo = MkFoo Int | Float :==> Double
+
+x `f` y = x
+
+(\\\) :: (Eq a) => [a] -> [a] -> [a]
+(\\\) xs ys = xs