diff options
| author | Alan Zimmerman <alan.zimm@gmail.com> | 2014-11-24 09:43:45 -0600 |
|---|---|---|
| committer | Austin Seipp <austin@well-typed.com> | 2014-11-24 09:43:46 -0600 |
| commit | bdeab901ffda47cb8f4a28ab3880626e8b23b4d6 (patch) | |
| tree | 56f4b768db1aaa83d6c0f0041dd54f2f5e733c40 /compiler/parser/ApiAnnotation.hs | |
| parent | 1617a10aaa75567b776d4a47200ddaa1267771db (diff) | |
| download | haskell-bdeab901ffda47cb8f4a28ab3880626e8b23b4d6.tar.gz | |
Minor tweaks to API Annotation
Summary:
Add missing Outputable instance for AnnotationComment
Update documentation
Adjust parser to capture annotations correctly
Test Plan: ./validate
Reviewers: austin
Reviewed By: austin
Subscribers: thomie, carter
Differential Revision: https://phabricator.haskell.org/D520
Diffstat (limited to 'compiler/parser/ApiAnnotation.hs')
| -rw-r--r-- | compiler/parser/ApiAnnotation.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/parser/ApiAnnotation.hs b/compiler/parser/ApiAnnotation.hs index 140cd1d87d..4640a98219 100644 --- a/compiler/parser/ApiAnnotation.hs +++ b/compiler/parser/ApiAnnotation.hs @@ -229,6 +229,8 @@ data AnnotationComment = -- Note: these are based on the Token versions, but the Token type is -- defined in Lexer.x and bringing it in here would create a loop +instance Outputable AnnotationComment where + ppr x = text (show x) -- | - 'ApiAnnotation.AnnKeywordId' : 'ApiAnnotation.AnnOpen', -- 'ApiAnnotation.AnnClose','ApiAnnotation.AnnComma', |
