Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- keywordToString :: KeywordId -> String
- data KeywordId
- data Comment = Comment {
- commentContents :: !String
- commentAnchor :: !Anchor
- commentOrigin :: !(Maybe AnnKeywordId)
Documentation
keywordToString :: KeywordId -> String Source #
Maps AnnKeywordId
to the corresponding String representation.
There is no specific mapping for the following constructors.
AnnOpen
, AnnClose
, AnnVal
, AnnPackageName
, AnnHeader
, AnnFunId
,
AnnInfix
The different syntactic elements which are not represented in the AST.
G AnnKeywordId | A normal keyword |
AnnSemiSep | A separating comma |
AnnTypeApp | Visible type application annotation |
AnnComment Comment | |
AnnString String | Used to pass information from Delta to Print when we have to work out details from the original SrcSpan. |
A Haskell comment. The AnnKeywordId
is present if it has been converted
from an AnnKeywordId
because the annotation must be interleaved into the
stream and does not have a well-defined position
Comment | |
|