Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module defines how report input is formed.
Synopsis
- newtype AstPath = AstPath {
- getAstPath :: [Text]
- isSubPath :: AstPath -> AstPath -> Bool
- existsPath :: AstPath -> Org -> Bool
- data ScopeModifier
- applyModifiers :: Org -> [ScopeModifier] -> Either ModifierError Org
Documentation
Path in org AST is just a list of paths, head ~ closer to tree root.
AstPath | |
|
data ScopeModifier Source #
Modificicators of org tree. They remove some subtrees
ModPruneSubtree AstPath Int | Turns all subtrees starting with |
ModFilterTag Text | Given text tag name, it leaves only those subtrees that have this tag (tags are inherited). |
ModSquash AstPath | Starting at node on path A and depth n, turn A into set of nodes Aa1a2...an. Doesn't work/make sense for empty path. |
ModSelectSubtree AstPath | Leaves only node at |
Instances
Eq ScopeModifier Source # | |
Defined in OrgStat.Scope (==) :: ScopeModifier -> ScopeModifier -> Bool # (/=) :: ScopeModifier -> ScopeModifier -> Bool # | |
Ord ScopeModifier Source # | |
Defined in OrgStat.Scope compare :: ScopeModifier -> ScopeModifier -> Ordering # (<) :: ScopeModifier -> ScopeModifier -> Bool # (<=) :: ScopeModifier -> ScopeModifier -> Bool # (>) :: ScopeModifier -> ScopeModifier -> Bool # (>=) :: ScopeModifier -> ScopeModifier -> Bool # max :: ScopeModifier -> ScopeModifier -> ScopeModifier # min :: ScopeModifier -> ScopeModifier -> ScopeModifier # | |
Show ScopeModifier Source # | |
Defined in OrgStat.Scope showsPrec :: Int -> ScopeModifier -> ShowS # show :: ScopeModifier -> String # showList :: [ScopeModifier] -> ShowS # | |
FromJSON ScopeModifier # | |
Defined in OrgStat.Config parseJSON :: Value -> Parser ScopeModifier # parseJSONList :: Value -> Parser [ScopeModifier] # |
applyModifiers :: Org -> [ScopeModifier] -> Either ModifierError Org Source #
Generates an org to be processed by report generators from Scope
.