Safe Haskell | None |
---|
- data GhcOptions = GhcOptions {
- ghcOptMode :: Flag GhcMode
- ghcOptExtra :: [String]
- ghcOptExtraDefault :: [String]
- ghcOptInputFiles :: [FilePath]
- ghcOptInputModules :: [ModuleName]
- ghcOptOutputFile :: Flag FilePath
- ghcOptOutputDynFile :: Flag FilePath
- ghcOptSourcePathClear :: Flag Bool
- ghcOptSourcePath :: [FilePath]
- ghcOptPackageName :: Flag PackageId
- ghcOptPackageDBs :: PackageDBStack
- ghcOptPackages :: [(InstalledPackageId, PackageId)]
- ghcOptHideAllPackages :: Flag Bool
- ghcOptNoAutoLinkPackages :: Flag Bool
- ghcOptLinkLibs :: [FilePath]
- ghcOptLinkLibPath :: [FilePath]
- ghcOptLinkOptions :: [String]
- ghcOptLinkFrameworks :: [String]
- ghcOptNoLink :: Flag Bool
- ghcOptLinkNoHsMain :: Flag Bool
- ghcOptCcOptions :: [String]
- ghcOptCppOptions :: [String]
- ghcOptCppIncludePath :: [FilePath]
- ghcOptCppIncludes :: [FilePath]
- ghcOptFfiIncludes :: [FilePath]
- ghcOptLanguage :: Flag Language
- ghcOptExtensions :: [Extension]
- ghcOptExtensionMap :: [(Extension, String)]
- ghcOptOptimisation :: Flag GhcOptimisation
- ghcOptProfilingMode :: Flag Bool
- ghcOptSplitObjs :: Flag Bool
- ghcOptNumJobs :: Flag Int
- ghcOptGHCiScripts :: [FilePath]
- ghcOptHiSuffix :: Flag String
- ghcOptObjSuffix :: Flag String
- ghcOptDynHiSuffix :: Flag String
- ghcOptDynObjSuffix :: Flag String
- ghcOptHiDir :: Flag FilePath
- ghcOptObjDir :: Flag FilePath
- ghcOptOutputDir :: Flag FilePath
- ghcOptStubDir :: Flag FilePath
- ghcOptDynLinkMode :: Flag GhcDynLinkMode
- ghcOptShared :: Flag Bool
- ghcOptFPic :: Flag Bool
- ghcOptDylibName :: Flag String
- ghcOptVerbosity :: Flag Verbosity
- ghcOptCabal :: Flag Bool
- data GhcMode
- data GhcOptimisation
- data GhcDynLinkMode
- ghcInvocation :: ConfiguredProgram -> Compiler -> GhcOptions -> ProgramInvocation
- renderGhcOptions :: Compiler -> GhcOptions -> [String]
- runGHC :: Verbosity -> ConfiguredProgram -> Compiler -> GhcOptions -> IO ()
Documentation
data GhcOptions
A structured set of GHC options/flags
GhcOptions | |
|
Show GhcOptions | |
Monoid GhcOptions |
data GhcMode
GhcModeCompile | ghc -c |
GhcModeLink | ghc |
GhcModeMake | ghc --make |
GhcModeInteractive |
|
GhcModeAbiHash |
|
data GhcOptimisation
GhcNoOptimisation | -O0 |
GhcNormalOptimisation | -O |
GhcMaximumOptimisation | -O2 |
GhcSpecialOptimisation String | e.g. |
Eq GhcOptimisation | |
Show GhcOptimisation |
data GhcDynLinkMode
GhcStaticOnly | -static |
GhcDynamicOnly | -dynamic |
GhcStaticAndDynamic | -static -dynamic-too |
Eq GhcDynLinkMode | |
Show GhcDynLinkMode |
renderGhcOptions :: Compiler -> GhcOptions -> [String]
runGHC :: Verbosity -> ConfiguredProgram -> Compiler -> GhcOptions -> IO ()