summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_run/dsrun001.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/deSugar/should_run/dsrun001.hs')
-rw-r--r--testsuite/tests/deSugar/should_run/dsrun001.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/deSugar/should_run/dsrun001.hs b/testsuite/tests/deSugar/should_run/dsrun001.hs
new file mode 100644
index 0000000000..e40ea2a11d
--- /dev/null
+++ b/testsuite/tests/deSugar/should_run/dsrun001.hs
@@ -0,0 +1,12 @@
+{- Check that list comprehensions can be written
+ in do-notation. This actually broke 2.02, with
+ a pattern match failure in dsListComp!
+-}
+
+module Main where
+
+main = putStrLn (show theList)
+theList = do x <- [1..3]
+ y <- [1..3]
+ return (x,y)
+