eventloop-0.8.2.8: A different take on an IO system. Based on Amanda's IO loop, this eventloop takes a function that maps input events to output events. It can easily be extended by modules that represent IO devices or join multiple modules together.

Safe HaskellNone
LanguageHaskell2010

Eventloop.Module.DrawTrees

Synopsis

Documentation

data NodeColor Source #

Constructors

NodeRed 
NodeBlack 
NodeGrey 
Instances
Eq NodeColor Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.Types

Show NodeColor Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.Types

Generic NodeColor Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.Types

Associated Types

type Rep NodeColor :: Type -> Type #

NFData NodeColor Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.Types

Methods

rnf :: NodeColor -> () #

type Rep NodeColor Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.Types

type Rep NodeColor = D1 (MetaData "NodeColor" "Eventloop.Module.DrawTrees.Types" "eventloop-0.8.2.8-inplace" False) (C1 (MetaCons "NodeRed" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "NodeBlack" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "NodeGrey" PrefixI False) (U1 :: Type -> Type)))

data RBTree Source #

Constructors

RBNode NodeColor String [RBTree] 
Instances
Eq RBTree Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.Types

Methods

(==) :: RBTree -> RBTree -> Bool #

(/=) :: RBTree -> RBTree -> Bool #

Show RBTree Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.Types

GeneralizeTree RBTree Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.DrawTrees

class ToRoseTree a where Source #

Convert to a RoseTree

Minimal complete definition

Nothing

Methods

toRoseTree :: a -> RoseTree Source #

Convert to a RoseTree

toRoseTree :: (Generic a, GToRoseTree (Rep a)) => a -> RoseTree Source #

Convert to a RoseTree

Instances
ToRoseTree Bool Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.RoseTreeGeneric

ToRoseTree Char Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.RoseTreeGeneric

ToRoseTree Double Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.RoseTreeGeneric

ToRoseTree Float Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.RoseTreeGeneric

ToRoseTree Int Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.RoseTreeGeneric

ToRoseTree Integer Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.RoseTreeGeneric

ToRoseTree Ordering Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.RoseTreeGeneric

ToRoseTree String Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.RoseTreeGeneric

ToRoseTree a => ToRoseTree [a] Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.RoseTreeGeneric

Methods

toRoseTree :: [a] -> RoseTree Source #

ToRoseTree a => ToRoseTree (Maybe a) Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.RoseTreeGeneric

(ToRoseTree l, ToRoseTree r) => ToRoseTree (Either l r) Source # 
Instance details

Defined in Eventloop.Module.DrawTrees.RoseTreeGeneric

Methods

toRoseTree :: Either l r -> RoseTree Source #

genericToRoseTree :: (Generic a, GToRoseTree (Rep a)) => a -> RoseTree Source #

A version of toRoseTree that works for any data type that has an instance for Generic