summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_run/mc17.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/typecheck/should_run/mc17.hs')
-rw-r--r--testsuite/tests/typecheck/should_run/mc17.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/typecheck/should_run/mc17.hs b/testsuite/tests/typecheck/should_run/mc17.hs
new file mode 100644
index 0000000000..abd3b7b579
--- /dev/null
+++ b/testsuite/tests/typecheck/should_run/mc17.hs
@@ -0,0 +1,10 @@
+{-# LANGUAGE MonadComprehensions, ParallelListComp #-}
+
+-- !!! Parallel list comprehensions
+
+module Main where
+
+f xs = [ (x,y) | x <- xs, x>3 | y <- xs ]
+
+main = print (f [0..10])
+