summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/read030.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_compile/read030.hs')
-rw-r--r--testsuite/tests/parser/should_compile/read030.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/read030.hs b/testsuite/tests/parser/should_compile/read030.hs
new file mode 100644
index 0000000000..26883024ee
--- /dev/null
+++ b/testsuite/tests/parser/should_compile/read030.hs
@@ -0,0 +1,10 @@
+-- !!! Infix decls w/ infix data constructors
+
+-- GHC used to barf on this...
+
+module ShouldCompile where
+
+infix 2 |-, |+
+
+ps |- q:qs = undefined
+ps |+ p:q:qs = undefined