haskell-tools-prettyprint-0.2.0.0: Pretty printing of Haskell-Tools AST

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Tools.PrettyPrint.RoseTree

Description

A simpler representation of the original AST.

Synopsis

Documentation

data RoseTree st Source #

A rose tree containing additional node information

Constructors

RoseTree 

Instances

SourceInfo st => Show (RoseTree st) Source # 

Methods

showsPrec :: Int -> RoseTree st -> ShowS #

show :: RoseTree st -> String #

showList :: [RoseTree st] -> ShowS #

data RoseSourceInfo st Source #

Heterogenous representation of source information, for pretty printing

toRoseTree :: SourceInfoTraversal n => n dom st -> RoseTree st Source #

Transforms the heterogeneous AST into a homogeneous representation for pretty printing