haskell-tools-prettyprint-0.1.2.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 a Source #

A rose tree containing additional node information

Constructors

RoseTree 

Fields

Instances

Functor RoseTree Source # 

Methods

fmap :: (a -> b) -> RoseTree a -> RoseTree b #

(<$) :: a -> RoseTree b -> RoseTree a #

Show a => Show (RoseTree a) Source # 

Methods

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

show :: RoseTree a -> String #

showList :: [RoseTree a] -> ShowS #

toRoseTree :: StructuralTraversable n => n inf -> RoseTree inf Source #

Transforms the heterogeneous AST into a homogeneous representation for pretty printing