Safe Haskell | None |
---|---|
Language | Haskell98 |
- data CompilerArgs = CompilerArgs {
- hsSourceDirs :: [FilePath]
- ghcOptions :: [String]
- defaultExtensions :: [String]
- defaultLanguage :: [String]
- cppOptions :: [String]
- cSources :: [FilePath]
- ccOptions :: [String]
- extraLibDirs :: [FilePath]
- extraLibraries :: [String]
- ldOptions :: [String]
- includeDirs :: [FilePath]
- includes :: [String]
- buildDepends :: [String]
- packageDB :: Maybe FilePath
- autogenHsSourceDirs :: [FilePath]
- autogenIncludeDirs :: [FilePath]
- autogenIncludes :: [String]
- hdevtoolsSocket :: Maybe FilePath
- fromCmdArgs :: Args -> IO (Either Error CompilerArgs)
- fromSpec :: Spec -> CompilerArgs
Documentation
data CompilerArgs Source #
The collected compiler args from the cabal file. Till the field packageDB
all fields represent the equaliy named fields (-
replaced by CamelCase)
from the cabal file.
CompilerArgs | |
|
fromCmdArgs :: Args -> IO (Either Error CompilerArgs) Source #
Create a CompilerArgs
by the command line arguments given to 'cabal-cargs'.
fromSpec :: Spec -> CompilerArgs Source #
Create a CompilerArgs
and collect the compiler args specified by Spec
.