funcmp-1.9: Functional MetaPost is a Haskell frontend to the MetaPost language

Copyright(c) 2003-2010 Peter Simons
(c) 2002-2003 Ferenc Wágner
(c) 2002-2003 Meik Hellmund
(c) 1998-2002 Ralf Hinze
(c) 1998-2002 Joachim Korittky
(c) 1998-2002 Marco Kuhlmann
LicenseGPLv3
Maintainersimons@cryp.to
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

FMP.Tree

Contents

Description

 

Documentation

data Tree' a #

Constructors

Node' a NodeDescr [Tree' a] 

data Tree #

Constructors

Node Picture NodeDescr [Edge] 
Instances
Show Tree # 
Instance details

Defined in FMP.Tree

Methods

showsPrec :: Int -> Tree -> ShowS #

show :: Tree -> String #

showList :: [Tree] -> ShowS #

HasColor Tree # 
Instance details

Defined in FMP.Tree

HasName Tree # 
Instance details

Defined in FMP.Tree

Methods

setName :: IsName b => b -> Tree -> Tree #

getNames :: Tree -> [Name] #

IsPicture Tree # 
Instance details

Defined in FMP.Tree

data Edge #

Constructors

Edge Path Tree 
Cross Path 
Instances
Show Edge # 
Instance details

Defined in FMP.Tree

Methods

showsPrec :: Int -> Edge -> ShowS #

show :: Edge -> String #

showList :: [Edge] -> ShowS #

HasColor Edge # 
Instance details

Defined in FMP.Tree

IsHideable Edge # 
Instance details

Defined in FMP.Tree

Methods

hide :: Edge -> Edge #

HasStartEndDir Edge # 
Instance details

Defined in FMP.Tree

HasArrowHead Edge # 
Instance details

Defined in FMP.Tree

HasPen Edge # 
Instance details

Defined in FMP.Tree

Methods

setPen :: Pen -> Edge -> Edge #

setDefaultPen :: Edge -> Edge #

getPen :: Edge -> Pen #

HasPattern Edge # 
Instance details

Defined in FMP.Tree

HasLabel Edge # 
Instance details

Defined in FMP.Tree

Methods

setLabel :: IsPicture b => Double -> Dir -> b -> Edge -> Edge #

removeLabel :: Edge -> Edge #

data AlignSons #

Instances
Show AlignSons # 
Instance details

Defined in FMP.Tree

data Distance #

Instances
Eq Distance # 
Instance details

Defined in FMP.Tree

Fractional Distance # 
Instance details

Defined in FMP.Tree

Num Distance # 
Instance details

Defined in FMP.Tree

Show Distance # 
Instance details

Defined in FMP.Tree

edge :: Tree -> Edge #

edge' :: Path -> Tree -> Edge #

enode :: IsPicture a => a -> [Edge] -> Edge #

node :: IsPicture a => a -> [Edge] -> Tree #

forEachNode :: (Tree -> Tree) -> Tree -> Tree #

forEachEdge :: (Path -> Path) -> Tree -> Tree #

alignFunction :: (NodeDescr -> [Extent] -> Int -> [Numeric]) -> AlignSons #

fit :: Numeric -> Extent -> Extent -> Position #

fitLeft :: Numeric -> [Extent] -> [Position] #

fitRight :: Numeric -> [Extent] -> [Position] #

data NodeName #

Constructors

Parent 
This 
Root 
Up Int 
Son Int 
Instances
Show NodeName # 
Instance details

Defined in FMP.Tree

IsName NodeName # 
Instance details

Defined in FMP.Tree

Orphan instances

(Eq a, Eq b) => Eq (a -> b) # 
Instance details

Methods

(==) :: (a -> b) -> (a -> b) -> Bool #

(/=) :: (a -> b) -> (a -> b) -> Bool #

(Num a, Num b) => Num (a, b) # 
Instance details

Methods

(+) :: (a, b) -> (a, b) -> (a, b) #

(-) :: (a, b) -> (a, b) -> (a, b) #

(*) :: (a, b) -> (a, b) -> (a, b) #

negate :: (a, b) -> (a, b) #

abs :: (a, b) -> (a, b) #

signum :: (a, b) -> (a, b) #

fromInteger :: Integer -> (a, b) #

(Read a, Read b) => Read (a -> b) # 
Instance details

Methods

readsPrec :: Int -> ReadS (a -> b) #

readList :: ReadS [a -> b] #

readPrec :: ReadPrec (a -> b) #

readListPrec :: ReadPrec [a -> b] #

Show (a -> b) # 
Instance details

Methods

showsPrec :: Int -> (a -> b) -> ShowS #

show :: (a -> b) -> String #

showList :: [a -> b] -> ShowS #