summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/exactprint/LayoutLet2.expected.hs
diff options
context:
space:
mode:
authorGHC GitLab CI <ghc-ci@gitlab-haskell.org>2021-03-21 22:58:14 +0000
committerGHC GitLab CI <ghc-ci@gitlab-haskell.org>2021-03-23 08:35:26 +0000
commit297589979dbbacee1f697768bd460cc12d1ef642 (patch)
tree91b06859c7ee5f83a326c1d794152bbfffffae36 /testsuite/tests/ghc-api/exactprint/LayoutLet2.expected.hs
parent6e437a121a87e3aea2ed0ecc34bc470b1341668f (diff)
downloadhaskell-wip/az/exactprint-tests.tar.gz
EPA: Run exactprint transformation tests as part of CIwip/az/exactprint-tests
EPA == exact print annotations. When !2418 landed, it did not run the tests brought over from ghc-exactprint for making sure the AST prints correctly efter being edited. This enables those tests.
Diffstat (limited to 'testsuite/tests/ghc-api/exactprint/LayoutLet2.expected.hs')
-rw-r--r--testsuite/tests/ghc-api/exactprint/LayoutLet2.expected.hs8
1 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-api/exactprint/LayoutLet2.expected.hs b/testsuite/tests/ghc-api/exactprint/LayoutLet2.expected.hs
new file mode 100644
index 0000000000..8da499ce3a
--- /dev/null
+++ b/testsuite/tests/ghc-api/exactprint/LayoutLet2.expected.hs
@@ -0,0 +1,8 @@
+module LayoutLet2 where
+
+-- Simple let expression, rename xxx to something longer or shorter
+-- and the let/in layout should adjust accordingly
+-- In this case the tokens for xxx + a + b should also shift out
+
+foo xxxlonger = let a = 1
+ b = 2 in xxxlonger + a + b