| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Cfg.Parser
Documentation
data ConfigParseError Source #
Constructors
| UnmatchedFields [Tree Text] | |
| MismatchedRootKey Text Text | |
| MismatchedKeyAndField Text (Text, Text) | |
| MissingKeys [Text] | |
| MissingValue Text | |
| UnexpectedKeys Text [Tree Text] | |
| ValueParseError Text |
Instances
class RootParser a where Source #
Methods
parseRootConfig :: Tree Text -> Either ConfigParseError a Source #
Instances
| (AssertTopLevelRecord RootConfig a, Generic a, GRootConfigParser (Rep a)) => RootParser (ConfigRoot a) Source # | |
Defined in Cfg.Deriving.ConfigRoot Methods parseRootConfig :: Tree Text -> Either ConfigParseError (ConfigRoot a) Source # | |
| (LabelModifier t, LabelModifier t', AssertTopLevelRecord RootConfig a, Generic a, GRootConfigParser (Rep a)) => RootParser (ConfigRootOpts t t' a) Source # | |
Defined in Cfg.Deriving.ConfigRoot Methods parseRootConfig :: Tree Text -> Either ConfigParseError (ConfigRootOpts t t' a) Source # | |
class NestedParser a where Source #
Minimal complete definition
Nothing
Methods
parseNestedConfig :: Tree Text -> Either ConfigParseError a Source #
default parseNestedConfig :: ValueParser a => Tree Text -> Either ConfigParseError a Source #
Instances
class ValueParser a where Source #
Instances
fractional :: Read a => Parser a Source #