Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains compatibility constructs to write type signatures across multiple ghc-exactprint versions, accepting that anything more ambitious is pretty much impossible with the GHC 9.2 redesign of ghc-exactprint
Synopsis
- class ExactPrint ast
- exactPrint :: Annotate ast => Located ast -> Anns -> String
- makeDeltaAst :: ExactPrint ast => ast -> ast
- data Annotated ast
- pattern Annotated :: ast -> Anns -> Annotated ast
- astA :: Annotated ast -> ast
- annsA :: Annotated ast -> Anns
Documentation
class ExactPrint ast Source #
Instances
ExactPrint ast Source # | |
Defined in Development.IDE.GHC.Compat.ExactPrint makeDeltaAst :: ast -> ast Source # |
exactPrint :: Annotate ast => Located ast -> Anns -> String #
Print an AST with a map of potential modified Anns
. The usual way to
generate such a map is by using one of the parsers in
Language.Haskell.GHC.ExactPrint.Parsers.
makeDeltaAst :: ExactPrint ast => ast -> ast Source #
Annotated
packages an AST fragment with the annotations necessary to
exactPrint
or transform
that AST.