diff options
author | GHC GitLab CI <ghc-ci@gitlab-haskell.org> | 2021-03-21 22:58:14 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-03-23 20:44:11 -0400 |
commit | 25306ddc00c2236564bcfebd55a3f61ffa6d182e (patch) | |
tree | 432ee092c243c4963c5c804a2926da924aece70b /testsuite/tests/ghc-api/exactprint/LayoutIn3.expected.hs | |
parent | df895b3f972e0062a81c8c136fa9fdd79badea5c (diff) | |
download | haskell-25306ddc00c2236564bcfebd55a3f61ffa6d182e.tar.gz |
EPA: Run exactprint transformation tests as part of CI
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/LayoutIn3.expected.hs')
-rw-r--r-- | testsuite/tests/ghc-api/exactprint/LayoutIn3.expected.hs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-api/exactprint/LayoutIn3.expected.hs b/testsuite/tests/ghc-api/exactprint/LayoutIn3.expected.hs new file mode 100644 index 0000000000..900d6daf63 --- /dev/null +++ b/testsuite/tests/ghc-api/exactprint/LayoutIn3.expected.hs @@ -0,0 +1,13 @@ +module LayoutIn3 where + +--Layout rule applies after 'where','let','do' and 'of' + +--In this Example: rename 'x' after 'let' to 'anotherX'. + +foo x = let anotherX = 12 in (let y = 3 + z = 2 in anotherX * y * z * w) where y = 2 + --there is a comment. + w = x + where + x = let y = 5 in y + 3 + |