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

Floskell.Comments

Description

Comment handling.

Synopsis

Documentation

filterCommentLike :: [Text] -> ([Text], [Comment]) #

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 #

Annotate the AST with comments.