mtree-0.1: Tree with Meta and Content parameters

Portabilityportable
Stabilityexperimental
MaintainerRahul Gopinath (gopinath@eecs.oregonstate.edu)

Data.Trees.MTree

Description

This Haskell library provides an implementation of a tree data type with meta data in the nodes and content in the leaves.

Synopsis

Documentation

data Tree m c Source

| The Tree m c is a tree structure with metadata in the nodes | and metadata and content in the leaves.

Constructors

Leaf 

Fields

meta :: m
 
content :: c
 
Node 

Fields

meta :: m
 
trees :: [Tree m c]
 

Instances

Bitraversable Tree 
Bifunctor Tree 
Bifoldable Tree 
(Eq m, Eq c) => Eq (Tree m c) 
(Show m, Show c) => Show (Tree m c)