summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/mc15.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_compile/mc15.hs')
-rw-r--r--testsuite/tests/parser/should_compile/mc15.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/mc15.hs b/testsuite/tests/parser/should_compile/mc15.hs
new file mode 100644
index 0000000000..2976694803
--- /dev/null
+++ b/testsuite/tests/parser/should_compile/mc15.hs
@@ -0,0 +1,13 @@
+
+{-# LANGUAGE MonadComprehensions, ParallelListComp #-}
+
+module Foo where
+
+import Control.Monad.Zip
+
+foo :: (MonadZip m, Monad m) => m ()
+foo = [ ()
+ | () <- foo
+ | () <- foo
+ ]
+