Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data OrgDocView a = OrgDocView {
- ovElements :: [(a, Node)]
- ovDocument :: OrgDoc
- generateDocView :: NodeUpdate a => OrgDoc -> OrgDocView a
- getRawElements :: OrgDocView a -> [a]
- updateDoc :: (Ord a, NodeUpdate a) => Set a -> OrgDocView a -> OrgDocView a
- class Eq a => NodeUpdate a where
- findItemInNode :: Node -> Maybe a
- updateNodeLine :: a -> Node -> Maybe Node
Documentation
data OrgDocView a Source
OrgDocView | |
|
generateDocView :: NodeUpdate a => OrgDoc -> OrgDocView a Source
getRawElements :: OrgDocView a -> [a] Source
updateDoc :: (Ord a, NodeUpdate a) => Set a -> OrgDocView a -> OrgDocView a Source
class Eq a => NodeUpdate a where Source
Generic visitor for updating a Node's values. Intentionally, we
don't allow node deletion, just update. Preferably, if you want to
delete a Node, you should control the parent. We also have
findItemInNode which will construct an a
from the Node, which we
may then update against a list.
findItemInNode :: Node -> Maybe a Source
updateNodeLine :: a -> Node -> Maybe Node Source