|
|
|
|
|
|
| Synopsis |
|
|
|
| Documentation |
|
|
| A position within a Tree.
| | Constructors | | Loc | | | tree :: Tree a | The currently selected tree.
| | lefts :: Forest a | Siblings on the left, closest first.
| | rights :: Forest a | Siblings on the right, closest first.
| | parents :: [(Forest a, a, Forest a)] | The contexts of the parents for this location.
|
|
| Instances | |
|
|
| Conversions
|
|
|
| A location corresponding to the root of the given tree.
|
|
|
| The location of the first tree in a forest.
|
|
|
| Computes the forest containing this location.
|
|
|
| Computes the tree containing this location.
|
|
| Moving around
|
|
|
| The parent of the given location.
|
|
|
| The top-most parent of the given location.
|
|
|
| The child with the given index (starting from 0).
|
|
|
| The first child that satisfies a predicate.
|
|
|
| The first child of the given location.
|
|
|
| The last child of the given location.
|
|
|
| The left sibling of the given location.
|
|
|
| The right sibling of the given location.
|
|
| Node classification
|
|
|
| Are we at the top of the tree?
|
|
|
| Are we at the left end of the the tree?
|
|
|
| Are we at the right end of the tree?
|
|
|
| Are we at the bottom of the tree?
|
|
|
| Do we have a parent?
|
|
|
| Do we have children?
|
|
| Tree-specific mutation
|
|
|
| Insert a tree to the left of the current position.
The new tree becomes the current tree.
|
|
|
| Insert a tree to the right of the current position.
The new tree becomes the current tree.
|
|
|
|
|
|
|
|
|
| Delete the current node. The new position is:
* the right sibling, or if none
* the left sibling, or if none
* the parent.
|
|
| Working with the current tree
|
|
|
| Change the current tree.
|
|
|
| Modify the current tree.
|
|
|
| Modify the label at the current node.
|
|
|
| Change the label at the current node.
|
|
|
|
| Produced by Haddock version 2.6.0 |