cabal-cargs-1.2.0: A command line program for extracting compiler arguments from a cabal file.

Safe HaskellNone
LanguageHaskell98

CabalCargs.Spec

Synopsis

Documentation

data Spec Source #

Specifies which compiler args from which sections should be collected.

Constructors

Spec 

Fields

fromCmdArgs :: Args -> IO (Either Error Spec) Source #

Create a Spec by the command line arguments given to 'cabal-cargs'.

Depending on the command line arguments fromCmdArgs might behave like fromCabalFile, if only a cabal file was given, like fromSourceFile, if only a source file was given or like a mix of both, if a cabal file and a source file have been given.