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

Safe HaskellNone

CabalCargs.CompilerArgs

Synopsis

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

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

the path to the package database of the cabal sandbox

autogenHsSourceDirs :: [FilePath]

dirs of automatically generated haskell source files by cabal (e.g. Paths_*)

autogenIncludeDirs :: [FilePath]

dirs of automatically generated include files by cabal

autogenIncludes :: [String]

automatically generated include files by cabal (e.g. cabal_macros.h)

hdevtoolsSocket :: Maybe FilePath

the path to the hdevtools socket file

fromCmdArgs :: Args -> IO (Either Error CompilerArgs)Source

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

fromSpec :: Spec -> CompilerArgsSource

Create a CompilerArgs and collect the compiler args specified by Spec.