summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_run/dsrun001.hs
blob: e40ea2a11d15b5a583c09486a40b2daa8f9a3db4 (plain)
1
2
3
4
5
6
7
8
9
10
11
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)