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

CabalGild.Unstable.Type.Context

Synopsis

Documentation

data Context Source #

Represents the context necessary to run the program. This is essentially a simplified Config.

Constructors

Context 

Instances

Instances details
Show Context Source # 
Instance details

Defined in CabalGild.Unstable.Type.Context

Eq Context Source # 
Instance details

Defined in CabalGild.Unstable.Type.Context

Methods

(==) :: Context -> Context -> Bool #

(/=) :: Context -> Context -> Bool #

fromConfig :: (MonadLog m, MonadThrow m) => Config -> m Context Source #

Creates a Context from a Config. If the help or version was requested, then this will throw an ExitSuccess. Otherwise this makes sure the config is valid before returning the context.