Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
CabalCargs.CompilerArgs
Synopsis
- 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
- rootDir :: 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.
Constructors
CompilerArgs | |
Fields
|
Instances
Show CompilerArgs Source # | |
Defined in CabalCargs.CompilerArgs Methods showsPrec :: Int -> CompilerArgs -> ShowS # show :: CompilerArgs -> String # showList :: [CompilerArgs] -> ShowS # | |
Eq CompilerArgs Source # | |
Defined in CabalCargs.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
.