hxt-7.4: A collection of tools for processing XML with Haskell.Source 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 Source

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
type NTrees a = [NTree a]Source
shortcut for a sequence of n-ary trees
formatNTreeF :: (node -> String) -> (String -> String) -> (String -> String) -> NTree node -> String -> StringSource
convert a tree into a pseudo graphical string reprsentation
Produced by Haddock version 2.3.0