Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
CompilerArgs | |
|
Instances
Eq CompilerArgs Source # | |
Defined in CabalCargs.CompilerArgs (==) :: CompilerArgs -> CompilerArgs -> Bool # (/=) :: CompilerArgs -> CompilerArgs -> Bool # | |
Show CompilerArgs Source # | |
Defined in CabalCargs.CompilerArgs showsPrec :: Int -> CompilerArgs -> ShowS # show :: CompilerArgs -> String # showList :: [CompilerArgs] -> ShowS # |
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
.