summaryrefslogtreecommitdiff
path: root/testsuite/tests/codeGen/should_run/cgrun008.hs
blob: 1713b4834eada1f1b973a3cf4fbfab68d5bb6e6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
main = print (length comp_list)
 where
    comp_list :: [(Int,Int)]
    comp_list = [ (elem1,elem2)
		| elem1 <- given_list,
		  elem2 <- given_list,
		  elem1 >= (4::Int),
		  elem2 <  (3::Int)
		]

    given_list :: [Int]
    given_list = [1,2,3,4,5,6,7,8,9]