Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype InvalidConfigKeyPath = InvalidConfigKeyPath {}
- data ConfigValueParserFailed = ConfigValueParserFailed {
- inputKeys :: ![Text]
- parserErrorMessage :: !Text
- data UnknownConfigKeyFound = UnknownConfigKeyFound {
- parentKeys :: ![Text]
- keyName :: !Text
- siblingKeys :: ![Text]
- data SubConfigEntryExpected = SubConfigEntryExpected {
- keyName :: !Text
- configValue :: !Value
- data ConfigValueTypeMismatchFound = ConfigValueTypeMismatchFound {}
- newtype ConfigurationFileNotFound = ConfigurationFileNotFound {}
- newtype UnsupportedFileExtensionGiven = UnsupportedFileExtensionGiven {}
- data ConfigInvalidSyntaxFound = ConfigInvalidSyntaxFound {
- configFilepath :: !Text
- parserErrorMessage :: !Text
- data SpecInvalidSyntaxFound = SpecInvalidSyntaxFound {
- specFilepath :: !(Maybe Text)
- parseErrorMessage :: !Text
Documentation
newtype InvalidConfigKeyPath Source #
Thrown when calling the getConfig
or getConfigWith
functions on a key
that does not exist in the configuration spec
Instances
data ConfigValueParserFailed Source #
Thrown when there is a type mismatch in a JSON parser given via
getConfigWith
ConfigValueParserFailed | |
|
Instances
Eq ConfigValueParserFailed Source # | |
Defined in System.Etc.Internal.Errors | |
Read ConfigValueParserFailed Source # | |
Show ConfigValueParserFailed Source # | |
Defined in System.Etc.Internal.Errors showsPrec :: Int -> ConfigValueParserFailed -> ShowS # show :: ConfigValueParserFailed -> String # showList :: [ConfigValueParserFailed] -> ShowS # | |
Generic ConfigValueParserFailed Source # | |
Defined in System.Etc.Internal.Errors type Rep ConfigValueParserFailed :: * -> * # | |
Exception ConfigValueParserFailed Source # | |
type Rep ConfigValueParserFailed Source # | |
Defined in System.Etc.Internal.Errors type Rep ConfigValueParserFailed = D1 (MetaData "ConfigValueParserFailed" "System.Etc.Internal.Errors" "etc-0.4.1.0-7q0W6i0k47BIqxo3Mr9o9p" False) (C1 (MetaCons "ConfigValueParserFailed" PrefixI True) (S1 (MetaSel (Just "inputKeys") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]) :*: S1 (MetaSel (Just "parserErrorMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) |
data UnknownConfigKeyFound Source #
Thrown when the resolveFile
function finds a key on a configuration
file that is not specified in the given configuration spec
UnknownConfigKeyFound | |
|
Instances
data SubConfigEntryExpected Source #
Thrown when there is a type mismatch on a configuration entry, specifically, when there is a raw value instead of a sub-config in a configuration file
SubConfigEntryExpected | |
|
Instances
Eq SubConfigEntryExpected Source # | |
Defined in System.Etc.Internal.Errors | |
Read SubConfigEntryExpected Source # | |
Show SubConfigEntryExpected Source # | |
Defined in System.Etc.Internal.Errors showsPrec :: Int -> SubConfigEntryExpected -> ShowS # show :: SubConfigEntryExpected -> String # showList :: [SubConfigEntryExpected] -> ShowS # | |
Generic SubConfigEntryExpected Source # | |
Defined in System.Etc.Internal.Errors type Rep SubConfigEntryExpected :: * -> * # | |
Exception SubConfigEntryExpected Source # | |
type Rep SubConfigEntryExpected Source # | |
Defined in System.Etc.Internal.Errors type Rep SubConfigEntryExpected = D1 (MetaData "SubConfigEntryExpected" "System.Etc.Internal.Errors" "etc-0.4.1.0-7q0W6i0k47BIqxo3Mr9o9p" False) (C1 (MetaCons "SubConfigEntryExpected" PrefixI True) (S1 (MetaSel (Just "keyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "configValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Value))) |
data ConfigValueTypeMismatchFound Source #
This error is thrown when a type mismatch is found in a raw value when
calling resolveFile
ConfigValueTypeMismatchFound | |
|
Instances
newtype ConfigurationFileNotFound Source #
Thrown when a specified configuration file is not found in the system
ConfigurationFileNotFound | |
|
Instances
Eq ConfigurationFileNotFound Source # | |
Defined in System.Etc.Internal.Errors | |
Read ConfigurationFileNotFound Source # | |
Show ConfigurationFileNotFound Source # | |
Defined in System.Etc.Internal.Errors showsPrec :: Int -> ConfigurationFileNotFound -> ShowS # show :: ConfigurationFileNotFound -> String # showList :: [ConfigurationFileNotFound] -> ShowS # | |
Generic ConfigurationFileNotFound Source # | |
Defined in System.Etc.Internal.Errors type Rep ConfigurationFileNotFound :: * -> * # | |
Exception ConfigurationFileNotFound Source # | |
type Rep ConfigurationFileNotFound Source # | |
Defined in System.Etc.Internal.Errors type Rep ConfigurationFileNotFound = D1 (MetaData "ConfigurationFileNotFound" "System.Etc.Internal.Errors" "etc-0.4.1.0-7q0W6i0k47BIqxo3Mr9o9p" True) (C1 (MetaCons "ConfigurationFileNotFound" PrefixI True) (S1 (MetaSel (Just "configFilepath") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) |
newtype UnsupportedFileExtensionGiven Source #
Thrown when an input configuration file contains an unsupported file extension
UnsupportedFileExtensionGiven | |
|
Instances
Eq UnsupportedFileExtensionGiven Source # | |
Read UnsupportedFileExtensionGiven Source # | |
Show UnsupportedFileExtensionGiven Source # | |
Defined in System.Etc.Internal.Errors showsPrec :: Int -> UnsupportedFileExtensionGiven -> ShowS # show :: UnsupportedFileExtensionGiven -> String # showList :: [UnsupportedFileExtensionGiven] -> ShowS # | |
Generic UnsupportedFileExtensionGiven Source # | |
Defined in System.Etc.Internal.Errors type Rep UnsupportedFileExtensionGiven :: * -> * # | |
Exception UnsupportedFileExtensionGiven Source # | |
type Rep UnsupportedFileExtensionGiven Source # | |
Defined in System.Etc.Internal.Errors type Rep UnsupportedFileExtensionGiven = D1 (MetaData "UnsupportedFileExtensionGiven" "System.Etc.Internal.Errors" "etc-0.4.1.0-7q0W6i0k47BIqxo3Mr9o9p" True) (C1 (MetaCons "UnsupportedFileExtensionGiven" PrefixI True) (S1 (MetaSel (Just "configFilepath") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text))) |
data ConfigInvalidSyntaxFound Source #
Thrown when an input configuration file contains invalid syntax
ConfigInvalidSyntaxFound | |
|
Instances
Eq ConfigInvalidSyntaxFound Source # | |
Defined in System.Etc.Internal.Errors | |
Read ConfigInvalidSyntaxFound Source # | |
Show ConfigInvalidSyntaxFound Source # | |
Defined in System.Etc.Internal.Errors showsPrec :: Int -> ConfigInvalidSyntaxFound -> ShowS # show :: ConfigInvalidSyntaxFound -> String # showList :: [ConfigInvalidSyntaxFound] -> ShowS # | |
Generic ConfigInvalidSyntaxFound Source # | |
Defined in System.Etc.Internal.Errors type Rep ConfigInvalidSyntaxFound :: * -> * # | |
Exception ConfigInvalidSyntaxFound Source # | |
type Rep ConfigInvalidSyntaxFound Source # | |
Defined in System.Etc.Internal.Errors type Rep ConfigInvalidSyntaxFound = D1 (MetaData "ConfigInvalidSyntaxFound" "System.Etc.Internal.Errors" "etc-0.4.1.0-7q0W6i0k47BIqxo3Mr9o9p" False) (C1 (MetaCons "ConfigInvalidSyntaxFound" PrefixI True) (S1 (MetaSel (Just "configFilepath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "parserErrorMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) |
data SpecInvalidSyntaxFound Source #
Thrown when an configuration spec file contains invalid syntax
SpecInvalidSyntaxFound | |
|
Instances
Eq SpecInvalidSyntaxFound Source # | |
Defined in System.Etc.Internal.Errors | |
Read SpecInvalidSyntaxFound Source # | |
Show SpecInvalidSyntaxFound Source # | |
Defined in System.Etc.Internal.Errors showsPrec :: Int -> SpecInvalidSyntaxFound -> ShowS # show :: SpecInvalidSyntaxFound -> String # showList :: [SpecInvalidSyntaxFound] -> ShowS # | |
Generic SpecInvalidSyntaxFound Source # | |
Defined in System.Etc.Internal.Errors type Rep SpecInvalidSyntaxFound :: * -> * # | |
Exception SpecInvalidSyntaxFound Source # | |
type Rep SpecInvalidSyntaxFound Source # | |
Defined in System.Etc.Internal.Errors type Rep SpecInvalidSyntaxFound = D1 (MetaData "SpecInvalidSyntaxFound" "System.Etc.Internal.Errors" "etc-0.4.1.0-7q0W6i0k47BIqxo3Mr9o9p" False) (C1 (MetaCons "SpecInvalidSyntaxFound" PrefixI True) (S1 (MetaSel (Just "specFilepath") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "parseErrorMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) |