summaryrefslogtreecommitdiff
path: root/testsuite/tests/parser/should_compile/read003.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/parser/should_compile/read003.hs')
-rw-r--r--testsuite/tests/parser/should_compile/read003.hs20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/tests/parser/should_compile/read003.hs b/testsuite/tests/parser/should_compile/read003.hs
new file mode 100644
index 0000000000..afc3a21007
--- /dev/null
+++ b/testsuite/tests/parser/should_compile/read003.hs
@@ -0,0 +1,20 @@
+-- !!! Testing layout rule
+module ShouldCompile where
+
+l1 :: IO ()
+l1 = do
+ return a
+ where
+ a = ()
+
+l2 :: IO ()
+l2 = do
+ return a
+ where
+ a = ()
+
+l3 :: IO ()
+l3 = do
+ return a
+ where
+ a = ()