Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Specifies which compiler args from which sections should be collected.
Spec | |
|
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.