| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
System.Etc.Internal.Spec.Types
Documentation
data ConfigurationError #
Constructors
| InvalidConfiguration !(Maybe Text) !Text | |
| InvalidConfigKeyPath ![Text] | |
| ConfigurationFileNotFound !Text |
Instances
data CliOptValueType #
Instances
| Eq CliOptValueType # | |
Defined in System.Etc.Internal.Spec.Types Methods (==) :: CliOptValueType -> CliOptValueType -> Bool # (/=) :: CliOptValueType -> CliOptValueType -> Bool # | |
| Show CliOptValueType # | |
Defined in System.Etc.Internal.Spec.Types Methods showsPrec :: Int -> CliOptValueType -> ShowS # show :: CliOptValueType -> String # showList :: [CliOptValueType] -> ShowS # | |
| Generic CliOptValueType # | |
Defined in System.Etc.Internal.Spec.Types Associated Types type Rep CliOptValueType :: * -> * # Methods from :: CliOptValueType -> Rep CliOptValueType x # to :: Rep CliOptValueType x -> CliOptValueType # | |
| type Rep CliOptValueType # | |
Defined in System.Etc.Internal.Spec.Types type Rep CliOptValueType = D1 (MetaData "CliOptValueType" "System.Etc.Internal.Spec.Types" "etc-0.4.0.3-1VdOfTC1BjK5K2oA1bREav" False) (C1 (MetaCons "StringOpt" PrefixI False) (U1 :: * -> *) :+: (C1 (MetaCons "NumberOpt" PrefixI False) (U1 :: * -> *) :+: C1 (MetaCons "SwitchOpt" PrefixI False) (U1 :: * -> *))) | |
data CliArgValueType #
Instances
| Eq CliArgValueType # | |
Defined in System.Etc.Internal.Spec.Types Methods (==) :: CliArgValueType -> CliArgValueType -> Bool # (/=) :: CliArgValueType -> CliArgValueType -> Bool # | |
| Show CliArgValueType # | |
Defined in System.Etc.Internal.Spec.Types Methods showsPrec :: Int -> CliArgValueType -> ShowS # show :: CliArgValueType -> String # showList :: [CliArgValueType] -> ShowS # | |
| Generic CliArgValueType # | |
Defined in System.Etc.Internal.Spec.Types Associated Types type Rep CliArgValueType :: * -> * # Methods from :: CliArgValueType -> Rep CliArgValueType x # to :: Rep CliArgValueType x -> CliArgValueType # | |
| type Rep CliArgValueType # | |
data CliEntryMetadata #
Constructors
| Opt | |
| Arg | |
Fields
| |
Instances
data CliEntrySpec cmd #
Constructors
| CmdEntry | |
Fields
| |
| PlainEntry | |
Fields | |
Instances
data CliCmdSpec #
Constructors
| CliCmdSpec | |
Fields
| |
Instances
| Eq CliCmdSpec # | |
Defined in System.Etc.Internal.Spec.Types | |
| Show CliCmdSpec # | |
Defined in System.Etc.Internal.Spec.Types Methods showsPrec :: Int -> CliCmdSpec -> ShowS # show :: CliCmdSpec -> String # showList :: [CliCmdSpec] -> ShowS # | |
| Generic CliCmdSpec # | |
Defined in System.Etc.Internal.Spec.Types Associated Types type Rep CliCmdSpec :: * -> * # | |
| FromJSON CliCmdSpec # | |
Defined in System.Etc.Internal.Spec.Types | |
| type Rep CliCmdSpec # | |
Defined in System.Etc.Internal.Spec.Types type Rep CliCmdSpec = D1 (MetaData "CliCmdSpec" "System.Etc.Internal.Spec.Types" "etc-0.4.0.3-1VdOfTC1BjK5K2oA1bREav" False) (C1 (MetaCons "CliCmdSpec" PrefixI True) (S1 (MetaSel (Just "cliCmdDesc") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "cliCmdHeader") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) | |
data ConfigSources cmd #
Constructors
| ConfigSources | |
Instances
data SingleConfigValueType #
Instances
data ConfigValueType #
Constructors
| CVTSingle !SingleConfigValueType | |
| CVTArray !SingleConfigValueType |
Instances
data ConfigValue cmd #
Constructors
| ConfigValue | |
Fields
| |
| SubConfig | |
Fields
| |
Instances
data CliProgramSpec #
Constructors
| CliProgramSpec | |
Fields
| |
Instances
| Eq CliProgramSpec # | |
Defined in System.Etc.Internal.Spec.Types Methods (==) :: CliProgramSpec -> CliProgramSpec -> Bool # (/=) :: CliProgramSpec -> CliProgramSpec -> Bool # | |
| Show CliProgramSpec # | |
Defined in System.Etc.Internal.Spec.Types Methods showsPrec :: Int -> CliProgramSpec -> ShowS # show :: CliProgramSpec -> String # showList :: [CliProgramSpec] -> ShowS # | |
| FromJSON CliProgramSpec # | |
Defined in System.Etc.Internal.Spec.Types Methods parseJSON :: Value -> Parser CliProgramSpec # parseJSONList :: Value -> Parser [CliProgramSpec] # | |
Constructors
| FilePathsSpec ![Text] | |
| FilesSpec | |
Fields
| |
data ConfigSpec cmd #
Constructors
| ConfigSpec | |
Fields
| |
Instances
| Eq cmd => Eq (ConfigSpec cmd) # | |
Defined in System.Etc.Internal.Spec.Types Methods (==) :: ConfigSpec cmd -> ConfigSpec cmd -> Bool # (/=) :: ConfigSpec cmd -> ConfigSpec cmd -> Bool # | |
| Show cmd => Show (ConfigSpec cmd) # | |
Defined in System.Etc.Internal.Spec.Types Methods showsPrec :: Int -> ConfigSpec cmd -> ShowS # show :: ConfigSpec cmd -> String # showList :: [ConfigSpec cmd] -> ShowS # | |
| FromJSON cmd => FromJSON (ConfigSpec cmd) # | |
Defined in System.Etc.Internal.Spec.Types Methods parseJSON :: Value -> Parser (ConfigSpec cmd) # parseJSONList :: Value -> Parser [ConfigSpec cmd] # | |
cliArgKeys :: [Text] #
cliOptKeys :: [Text] #
inferErrorMsg :: String #
matchesConfigValueType :: Value -> ConfigValueType -> Bool #
assertMatchingConfigValueType :: Monad m => Value -> ConfigValueType -> m () #
parseFiles :: Value -> Parser FilesSpec #
parseFilePaths :: Value -> Parser FilesSpec #