Haskell Xml Toolbox 7.5: The Arrow APISource codeContentsIndex
Data.Tree.NTree.TypeDefs
Portabilityportable
Stabilityexperimental
MaintainerUwe Schmidt (uwe\@fh-wedel.de)
Description

Version : $Id: TypeDefs.hs,v 1.6 20050902 17:09:39 hxml Exp $

Interface definition for trees

n-ary tree structure (rose trees)

Synopsis
module Data.Tree.Class
data NTree a = NTree a (NTrees a)
type NTrees a = [NTree a]
formatNTreeF :: (node -> String) -> (String -> String) -> (String -> String) -> NTree node -> String -> String
Documentation
module Data.Tree.Class
data NTree a

n-ary ordered tree (rose trees)

a tree consists of a node and a possible empty list of children. If the list of children is empty, the node is a leaf, else it's an inner node.

NTree implements Eq, Ord, Show and Read

Constructors
NTree a (NTrees a)
show/hide Instances
Functor NTree
Tree NTree
DeepSeq a => DeepSeq (NTree a)
(Eq a, ??? a) => Eq (NTree a)
(Ord a, ??? a) => Ord (NTree a)
(Read a, ??? a) => Read (NTree a)
(Show a, ??? a) => Show (NTree a)
(Typeable a, ??? a) => Typeable (NTree a)
XmlNode a => XmlNode (NTree a)
type NTrees a = [NTree a]
shortcut for a sequence of n-ary trees
formatNTreeF :: (node -> String) -> (String -> String) -> (String -> String) -> NTree node -> String -> String
convert a tree into a pseudo graphical string reprsentation
Produced by Haddock version 0.8