-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Tree with Meta and Content parameters -- -- This Haskell library provides an implementation of a tree data type -- with meta data in the nodes and contents in the leaves. @package mtree @version 0.1 -- | This Haskell library provides an implementation of a tree data type -- with meta data in the nodes and content in the leaves. module Data.Trees.MTree -- | | The Tree m c is a tree structure with metadata in the nodes -- | and metadata and content in the leaves. data Tree m c Leaf :: m -> c -> Tree m c meta :: Tree m c -> m content :: Tree m c -> c Node :: m -> [Tree m c] -> Tree m c meta :: Tree m c -> m trees :: Tree m c -> [Tree m c] instance (Show m, Show c) => Show (Tree m c) instance (Eq m, Eq c) => Eq (Tree m c) instance Bitraversable Tree instance Bifoldable Tree instance Bifunctor Tree