diff options
Diffstat (limited to 'testsuite/tests/module/mod103.hs')
-rw-r--r-- | testsuite/tests/module/mod103.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/module/mod103.hs b/testsuite/tests/module/mod103.hs new file mode 100644 index 0000000000..ccd6ddfd0d --- /dev/null +++ b/testsuite/tests/module/mod103.hs @@ -0,0 +1,12 @@ +-- !!! Layout rule extension (restricting empty do's). +module Foo where + +g :: Int -> (Int -> IO a) -> IO a +g x cont = cont x + +f :: Int -> IO Int +f x = do + g x $ \ y -> do + f y + + |