summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/exactprint/AddDecl1.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghc-api/exactprint/AddDecl1.hs')
-rw-r--r--testsuite/tests/ghc-api/exactprint/AddDecl1.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/testsuite/tests/ghc-api/exactprint/AddDecl1.hs b/testsuite/tests/ghc-api/exactprint/AddDecl1.hs
new file mode 100644
index 0000000000..45c0cb3864
--- /dev/null
+++ b/testsuite/tests/ghc-api/exactprint/AddDecl1.hs
@@ -0,0 +1,11 @@
+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
+
+-- end of file