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