Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Comment handling.
Synopsis
- filterCommentLike :: [Text] -> ([Text], [Comment])
- annotateWithComments :: Traversable ast => ast SrcSpanInfo -> [Comment] -> ast NodeInfo
Documentation
filterCommentLike :: [Text] -> ([Text], [Comment]) Source #
Remove comment-like blocks from input source, replacing them with blank likes to keep SrcSpan information intact.
annotateWithComments :: Traversable ast => ast SrcSpanInfo -> [Comment] -> ast NodeInfo Source #
Annotate the AST with comments.