 | hxt-7.5: A collection of tools for processing XML with Haskell. | Contents | Index |
|
|
|
| Description |
| Navigable tree structure which allow a program to traverse
up the tree as well as down.
copied and modified from HXML (http://www.flightlab.com/~joe/hxml/)
|
|
| Synopsis |
|
|
|
| Documentation |
|
| data NavTree a |
navigable tree with nodes of type node
a navigable tree consists of a n-ary tree for the current fragment tree,
a navigable tree for all ancestors, and two n-ary trees for
the previous- and following siblings
| | Constructors | | Instances | |
|
|
| ntree :: NTree a -> NavTree a |
| converts a n-ary tree in a navigable tree
|
|
| subtreeNT :: NavTree a -> NTree a |
| converts a navigable tree in a n-ary tree
|
|
| dataNT :: NavTree a -> a |
| function for selecting the value of the current fragment tree
|
|
| downNT :: NavTree a -> Maybe (NavTree a) |
|
| leftNT :: NavTree a -> Maybe (NavTree a) |
|
| rightNT :: NavTree a -> Maybe (NavTree a) |
|
| upNT :: NavTree a -> Maybe (NavTree a) |
|
| preorderNT :: NavTree a -> [NavTree a] |
|
| revPreorderNT :: NavTree a -> [NavTree a] |
|
| getChildrenNT :: NavTree a -> [NavTree a] |
|
| o' :: Monad m => (b -> m c) -> (a -> m b) -> (a -> m c) |
| Kleisli composition:
|
|
| maybePlus :: (a -> Maybe a) -> a -> [a] |
|
| maybeStar :: (a -> Maybe a) -> a -> [a] |
|
| module Data.Tree.NTree.Filter |
|
| Produced by Haddock version 2.1.0 |