cabal-gild-1.1.4.0: Formats package descriptions.
Safe HaskellSafe-Inferred
LanguageHaskell2010

CabalGild.Type.Config

Description

This module defines the Config data type.

Synopsis

Documentation

data Config Source #

This data type represents the configuration for the command line utility. Each field typically corresponds to a flag.

Instances

Instances details
Show Config Source # 
Instance details

Defined in CabalGild.Type.Config

Eq Config Source # 
Instance details

Defined in CabalGild.Type.Config

Methods

(==) :: 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.