packages feed

aihc-parser-1.0.0.4: test/Test/Fixtures/oracle/Layout/ghc-layout008-do-mdo-rec.hs

{- ORACLE_TEST pass -}
-- From GHC testsuite/tests/layout/layout008.hs.
{-# 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'