floskell-0.11.1: A flexible Haskell source code pretty printer
Safe HaskellSafe-Inferred
LanguageHaskell2010

Floskell.Comments

Description

Comment handling.

Synopsis

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.