haskell-tools-prettyprint-0.1.3.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

Constructors

RoseSpan (SpanInfo st) 
RoseList (ListInfo st) 
RoseOptional (OptionalInfo st) 

Instances

SourceInfo st => Show (RoseSourceInfo st) Source # 

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

Transforms the heterogeneous AST into a homogeneous representation for pretty printing