summaryrefslogtreecommitdiff
path: root/testsuite/tests/deSugar/should_run/dsrun002.hs
blob: acad275f74752e2782af21c6801c04345537ac01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{- Tests let-expressions in do-statments -}

module Main( main ) where

foo = do
  	putStr "a"
	let x = "b" in putStr x
	putStr "c"

main = do
	 putStr "a"
	 foo
	 let x = "b" in putStrLn x