Safe Haskell | None |
---|---|
Language | Haskell2010 |
Abstract syntax tree for org.
- data Clock = Clock {}
- data Org = Org {
- _orgTitle :: Text
- _orgTags :: [Text]
- _orgClocks :: [Clock]
- _orgSubtrees :: [Org]
- orgTitle :: Lens' Org Text
- orgTags :: Lens' Org [Text]
- orgClocks :: Lens' Org [Clock]
- orgSubtrees :: Lens' Org [Org]
- fmapOrgLens :: ASetter' Org a -> (a -> a) -> Org -> Org
- traverseTree :: Traversal' Org Org
- atDepth :: Int -> Traversal' Org Org
- mergeClocks :: Org -> Org
Documentation
Org clock representation -- a pair of time in UTC. Should be local time in fact, but we'll assume that UTC timestamps support in org will be added at some point. For now all tags are to be read in local time.
Main datatype of org AST. It may contain some metadata if needed (e.g. current node depth, children number etc). Content of headers is ignored.
Org | |
|
fmapOrgLens :: ASetter' Org a -> (a -> a) -> Org -> Org Source #
Functor-like fmap
on field chosen by lens.
traverseTree :: Traversal' Org Org Source #
Traverses node and subnodes, all recursively
mergeClocks :: Org -> Org Source #
Merges task clocks that have less then 2m delta between them into one.