Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
data ConfigParseError Source #
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 #
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 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 parseRootConfig :: Tree Text -> Either ConfigParseError (ConfigRootOpts t t' a) Source # |
class NestedParser a where Source #
Nothing
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 #