Safe Haskell | None |
---|---|
Language | Haskell2010 |
Pretty printing the AST
- prettyPrint :: SourceInfoTraversal node => node dom SrcTemplateStage -> String
- toRoseTree :: SourceInfoTraversal n => n dom st -> RoseTree st
Documentation
prettyPrint :: SourceInfoTraversal node => node dom SrcTemplateStage -> String Source #
Pretty prints an AST by using source templates stored as node info
toRoseTree :: SourceInfoTraversal n => n dom st -> RoseTree st Source #
Transforms the heterogeneous AST into a homogeneous representation for pretty printing