summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/exactprint/LayoutIn3a.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghc-api/exactprint/LayoutIn3a.hs')
-rw-r--r--testsuite/tests/ghc-api/exactprint/LayoutIn3a.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-api/exactprint/LayoutIn3a.hs b/testsuite/tests/ghc-api/exactprint/LayoutIn3a.hs
new file mode 100644
index 0000000000..58b36b07f8
--- /dev/null
+++ b/testsuite/tests/ghc-api/exactprint/LayoutIn3a.hs
@@ -0,0 +1,13 @@
+module LayoutIn3a where
+
+--Layout rule applies after 'where','let','do' and 'of'
+
+--In this Example: rename 'x' after 'let' to 'anotherX'.
+
+foo x = let x = 12 in (
+ x ) where y = 2
+ --there is a comment.
+ w = x
+ where
+ x = let y = 5 in y + 3
+