Safe Haskell | None |
---|---|
Language | Haskell2010 |
Configuration file types, together with json instances.
Synopsis
- data ConfigException
- data ConfDate
- data ConfRange
- data ConfOutputType
- = TimelineOutput {
- toParams :: !TimelineParams
- toReport :: !Text
- | SummaryOutput !SummaryParams
- | BlockOutput {
- boParams :: !BlockParams
- boReport :: !Text
- = TimelineOutput {
- data ConfOutput = ConfOutput {
- coType :: !ConfOutputType
- coName :: !Text
- data ConfScope = ConfScope {}
- data ConfReport = ConfReport {
- crName :: !Text
- crScope :: !Text
- crRange :: !ConfRange
- crModifiers :: ![ScopeModifier]
- data OrgStatConfig = OrgStatConfig {
- confScopes :: ![ConfScope]
- confReports :: ![ConfReport]
- confOutputs :: ![ConfOutput]
- confBaseTimelineParams :: !TimelineParams
- confTodoKeywords :: ![Text]
- confOutputDir :: !FilePath
- confColorSalt :: !Int
Documentation
data ConfigException Source #
Exception type for everything bad that happens with config, starting from parsing to logic errors.
Instances
Show ConfigException Source # | |
Defined in OrgStat.Config showsPrec :: Int -> ConfigException -> ShowS # show :: ConfigException -> String # showList :: [ConfigException] -> ShowS # | |
Exception ConfigException Source # | |
Defined in OrgStat.Config |
data ConfOutputType Source #
TimelineOutput | |
| |
SummaryOutput !SummaryParams | |
BlockOutput | |
|
Instances
Show ConfOutputType Source # | |
Defined in OrgStat.Config showsPrec :: Int -> ConfOutputType -> ShowS # show :: ConfOutputType -> String # showList :: [ConfOutputType] -> ShowS # | |
FromJSON ConfOutputType Source # | |
Defined in OrgStat.Config parseJSON :: Value -> Parser ConfOutputType # parseJSONList :: Value -> Parser [ConfOutputType] # |
data ConfOutput Source #
ConfOutput | |
|
Instances
Show ConfOutput Source # | |
Defined in OrgStat.Config showsPrec :: Int -> ConfOutput -> ShowS # show :: ConfOutput -> String # showList :: [ConfOutput] -> ShowS # | |
FromJSON ConfOutput Source # | |
Defined in OrgStat.Config parseJSON :: Value -> Parser ConfOutput # parseJSONList :: Value -> Parser [ConfOutput] # |
data ConfReport Source #
ConfReport | |
|
Instances
Show ConfReport Source # | |
Defined in OrgStat.Config showsPrec :: Int -> ConfReport -> ShowS # show :: ConfReport -> String # showList :: [ConfReport] -> ShowS # | |
FromJSON ConfReport Source # | |
Defined in OrgStat.Config parseJSON :: Value -> Parser ConfReport # parseJSONList :: Value -> Parser [ConfReport] # |
data OrgStatConfig Source #
OrgStatConfig | |
|
Instances
Show OrgStatConfig Source # | |
Defined in OrgStat.Config showsPrec :: Int -> OrgStatConfig -> ShowS # show :: OrgStatConfig -> String # showList :: [OrgStatConfig] -> ShowS # | |
FromJSON OrgStatConfig Source # | |
Defined in OrgStat.Config parseJSON :: Value -> Parser OrgStatConfig # parseJSONList :: Value -> Parser [OrgStatConfig] # |
Orphan instances
FromJSON TimelineParams Source # | |
parseJSON :: Value -> Parser TimelineParams # parseJSONList :: Value -> Parser [TimelineParams] # | |
FromJSON ScopeModifier Source # | |
parseJSON :: Value -> Parser ScopeModifier # parseJSONList :: Value -> Parser [ScopeModifier] # | |
FromJSON AstPath Source # | |