summaryrefslogtreecommitdiff
path: root/testsuite/tests/layout/layout008.hs
blob: e484ebe44c7f9a093fcb76a6eab6fbe9596ae696 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

{-# LANGUAGE RecursiveDo, DoRec #-}
{-# OPTIONS_GHC -fno-warn-deprecated-flags #-}

module M where

-- do, mdo and rec should all open layouts

f :: IO ()
f = do print 'a'
       print 'b'

g :: IO ()
g = mdo print 'a'
        print 'b'

h :: IO ()
h = do print 'a'
       rec print 'b'
           print 'c'
       print 'd'