stable-tree-0.5.0: Trees whose branches are resistant to change

CopyrightJeremy Groven
LicenseBSD3
Safe HaskellNone
LanguageHaskell2010

Data.StableTree.Fragment

Description

This is the implementation of tree fragments, which are stand-alone chunks of data representing each branch within a Tree. This module is also used by the Tree code for generating each branch's ObjectID.

Synopsis

Documentation

data Fragment k v Source

A Fragment is a user-visible part of a tree, i.e. a single node in the tree that can actually be manipulated by a user. This is useful when doing the work of persisting trees.

Instances

(Eq k, Eq v) => Eq (Fragment k v) 
(Ord k, Ord v) => Ord (Fragment k v) 
(Show k, Show v) => Show (Fragment k v) 
(Ord k, Serialize k, Serialize v) => Serialize (Fragment k v)