hindent-4.6.0: Extensible Haskell pretty printer

Safe HaskellNone
LanguageHaskell98

HIndent.Comments

Description

Comment handling.

Synopsis

Documentation

annotateComments :: forall ast. (Data (ast NodeInfo), Traversable ast, Annotated ast) => ast SrcSpanInfo -> [Comment] -> ([ComInfo], ast NodeInfo) Source #

Annotate the AST with comments.

commentLocated :: ComInfoLocation -> NodeInfo -> Comment -> Bool Source #

Is the comment after the node?

spanTest :: ComInfoLocation -> SrcSpan -> SrcSpan -> Bool Source #

For After, does the first span end before the second starts? For Before, does the first span start after the second ends?