ghc-exactprint-0.6.4: ExactPrint for GHC
Safe HaskellNone
LanguageHaskell2010

Language.Haskell.GHC.ExactPrint.Pretty

Description

This module adds default annotations to an AST fragment that does not have them, to be able to exactprint it in a way that preserves the orginal AST when re-parsed.

Synopsis

Documentation

addAnnotationsForPretty :: Annotate a => [Comment] -> Located a -> Anns -> Anns Source #

Add any missing annotations so that the full AST element will exactprint properly when done.