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

CabalGild.Unstable.Type.Flag

Synopsis

Documentation

data Flag Source #

A flag, which represents a command line option. The values associated with the flags are typically not parsed. These just handle the structure of command line options.

Instances

Instances details
Show Flag Source # 
Instance details

Defined in CabalGild.Unstable.Type.Flag

Methods

showsPrec :: Int -> Flag -> ShowS #

show :: Flag -> String #

showList :: [Flag] -> ShowS #

Eq Flag Source # 
Instance details

Defined in CabalGild.Unstable.Type.Flag

Methods

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

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

options :: [OptDescr Flag] Source #

The command line options the correspond to the flags.

fromArguments :: MonadThrow m => [String] -> m [Flag] Source #

Converts a list of command line arguments into a list of flags. If there are any unexpected arguments, invalid options, or unknown options, an exception will be thrown.