The dual-tree package

[Tags:bsd3, library]

Rose (n-ary) trees with both upwards- (i.e. cached) and downwards-traveling (i.e. accumulating) monoidal annotations. This is used as the core data structure underlying the diagrams framework (, but potentially has other applications as well.

Abstractly, a DUALTree is a rose (n-ary) tree with data (of type l) at leaves, data (of type a) at internal nodes, and two types of monoidal annotations, one (of type u) travelling "up" the tree and one (of type d) traveling "down".

See Data.Tree.DUAL for full documentation. Data.Tree.DUAL provides a public API which should suffice for most purposes. Data.Tree.DUAL.Internal exports more of the internal implementation---use it at your own risk.


Versions,,,,,, 0.2,,,,,,,,,
Change log CHANGES
Dependencies base (>=4.3 && <4.10), monoid-extras (>=0.2 && <0.5), newtype (==0.2.*), semigroups (>=0.8 && <0.19) [details]
License BSD3
Author Brent Yorgey
Stability Unknown
Category Data
Bug tracker
Source repository head: git clone
Uploaded Sun Feb 14 18:03:03 UTC 2016 by bergey
Distributions Debian:, LTSHaskell:, NixOS:, Stackage:, Tumbleweed:
Downloads 22749 total (39 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2016-02-14 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees