summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/exactprint/AddDecl2.expected.hs
diff options
context:
space:
mode:
authorGHC GitLab CI <ghc-ci@gitlab-haskell.org>2021-03-21 22:58:14 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-03-23 20:44:11 -0400
commit25306ddc00c2236564bcfebd55a3f61ffa6d182e (patch)
tree432ee092c243c4963c5c804a2926da924aece70b /testsuite/tests/ghc-api/exactprint/AddDecl2.expected.hs
parentdf895b3f972e0062a81c8c136fa9fdd79badea5c (diff)
downloadhaskell-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/AddDecl2.expected.hs')
-rw-r--r--testsuite/tests/ghc-api/exactprint/AddDecl2.expected.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-api/exactprint/AddDecl2.expected.hs b/testsuite/tests/ghc-api/exactprint/AddDecl2.expected.hs
new file mode 100644
index 0000000000..2bbbcf5b37
--- /dev/null
+++ b/testsuite/tests/ghc-api/exactprint/AddDecl2.expected.hs
@@ -0,0 +1,13 @@
+module AddDecl where
+
+-- Adding a declaration to an existing file
+
+-- | Do foo
+foo a b = a + b
+
+-- | Do bar
+bar x y = {- baz -} foo (x+y) x
+
+nn = n2
+
+-- end of file