CabalGild.Type.Config
Description
This module defines the Config data type.
Config
data Config Source #
This data type represents the configuration for the command line utility. Each field typically corresponds to a flag.
Constructors
Fields
Defined in CabalGild.Type.Config
Methods
showsPrec :: Int -> Config -> ShowS #
show :: Config -> String #
showList :: [Config] -> ShowS #
(==) :: Config -> Config -> Bool #
(/=) :: Config -> Config -> Bool #
initial :: Config Source #
The default config.
applyFlag :: MonadThrow m => Config -> Flag -> m Config Source #
Applies a flag to the config, returning the new config.
fromFlags :: MonadThrow m => [Flag] -> m Config Source #
Converts a list of flags into a config by starting with initial and repeatedly calling applyFlag.
initial
applyFlag