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
Moduleghc-9.10.3GHC2021
GHC.Hs.Dump
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.
- 2 types
- 2 values
- Packageghc-9.10.3
- Exports4
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourceDump.hs
Dumping ASTs
4 declarationsShow the full AST as the compiler sees it.
Should source spans be removed from output.
Instances2Eq, Show
Eq BlankSrcSpanDefined in ghc-9.10.3 · GHC.Hs.DumpShow BlankSrcSpanDefined in ghc-9.10.3 · GHC.Hs.Dump
Should EpAnnotations be removed from output.
Instances2Eq, Show
Eq BlankEpAnnotationsDefined in ghc-9.10.3 · GHC.Hs.DumpShow BlankEpAnnotationsDefined in ghc-9.10.3 · GHC.Hs.Dump