diff options
Diffstat (limited to 'testsuite/tests/layout/layout008.hs')
-rw-r--r-- | testsuite/tests/layout/layout008.hs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/tests/layout/layout008.hs b/testsuite/tests/layout/layout008.hs new file mode 100644 index 0000000000..e484ebe44c --- /dev/null +++ b/testsuite/tests/layout/layout008.hs @@ -0,0 +1,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' + |