diff options
author | GHC GitLab CI <ghc-ci@gitlab-haskell.org> | 2021-03-23 08:32:31 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-03-25 04:53:16 -0400 |
commit | 1350a5cd730f1cbbe306b849def26bfcd119c103 (patch) | |
tree | 45c8b4ef2cd4b09d6f9a24da905a1be5ff5ee616 /testsuite/tests/printer/CommentsTest.hs | |
parent | 0029df2bd52aa7f93e2254a369428e4261e5d3ae (diff) | |
download | haskell-1350a5cd730f1cbbe306b849def26bfcd119c103.tar.gz |
EPA : Remove ApiAnn from ParsedModule
All the comments are now captured in the AST, there is no need for a
side-channel structure for them.
Diffstat (limited to 'testsuite/tests/printer/CommentsTest.hs')
-rw-r--r-- | testsuite/tests/printer/CommentsTest.hs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testsuite/tests/printer/CommentsTest.hs b/testsuite/tests/printer/CommentsTest.hs new file mode 100644 index 0000000000..c6cf79c5da --- /dev/null +++ b/testsuite/tests/printer/CommentsTest.hs @@ -0,0 +1,15 @@ +{-# LANGUAGE DeriveFoldable #-} +module CommentsTest (foo) where +{- +An opening comment + {- with a nested one -} + {-# nested PRAGMA #-} +-} + +import qualified Data.List as DL + +-- | The function @foo@ does blah +foo = let + a = 1 + b = 2 -- value 2 + in a + b |