Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Contains a debug function to dump parts of the GHC.Hs AST. It uses a syb
traversal which falls back to displaying based on the constructor name, so
can be used to dump anything having a Data.Data
instance.
Synopsis
- showAstData :: Data a => BlankSrcSpan -> BlankEpAnnotations -> a -> SDoc
- data BlankSrcSpan
- data BlankEpAnnotations
Dumping ASTs
showAstData :: Data a => BlankSrcSpan -> BlankEpAnnotations -> a -> SDoc Source #
Show a GHC syntax tree. This parameterised because it is also used for comparing ASTs in ppr roundtripping tests, where the SrcSpan's are blanked out, to avoid comparing locations, only structure
data BlankSrcSpan Source #
Instances
Show BlankSrcSpan # | |
Defined in GHC.Hs.Dump | |
Eq BlankSrcSpan # | |
Defined in GHC.Hs.Dump (==) :: BlankSrcSpan -> BlankSrcSpan -> Bool # (/=) :: BlankSrcSpan -> BlankSrcSpan -> Bool # |
data BlankEpAnnotations Source #
Instances
Show BlankEpAnnotations # | |
Defined in GHC.Hs.Dump | |
Eq BlankEpAnnotations # | |
Defined in GHC.Hs.Dump (==) :: BlankEpAnnotations -> BlankEpAnnotations -> Bool # (/=) :: BlankEpAnnotations -> BlankEpAnnotations -> Bool # |