Safe Haskell | None |
---|
- data GhcOptions = GhcOptions {
- ghcOptMode :: Flag GhcMode
- ghcOptExtra :: NubListR String
- ghcOptExtraDefault :: NubListR String
- ghcOptInputFiles :: NubListR FilePath
- ghcOptInputModules :: NubListR ModuleName
- ghcOptOutputFile :: Flag FilePath
- ghcOptOutputDynFile :: Flag FilePath
- ghcOptSourcePathClear :: Flag Bool
- ghcOptSourcePath :: NubListR FilePath
- ghcOptThisUnitId :: Flag String
- ghcOptPackageDBs :: PackageDBStack
- ghcOptPackages :: NubListR (UnitId, PackageId, ModuleRenaming)
- ghcOptHideAllPackages :: Flag Bool
- ghcOptNoAutoLinkPackages :: Flag Bool
- ghcOptLinkLibs :: NubListR FilePath
- ghcOptLinkLibPath :: NubListR FilePath
- ghcOptLinkOptions :: NubListR String
- ghcOptLinkFrameworks :: NubListR String
- ghcOptLinkFrameworkDirs :: NubListR String
- ghcOptNoLink :: Flag Bool
- ghcOptLinkNoHsMain :: Flag Bool
- ghcOptCcOptions :: NubListR String
- ghcOptCppOptions :: NubListR String
- ghcOptCppIncludePath :: NubListR FilePath
- ghcOptCppIncludes :: NubListR FilePath
- ghcOptFfiIncludes :: NubListR FilePath
- ghcOptLanguage :: Flag Language
- ghcOptExtensions :: NubListR Extension
- ghcOptExtensionMap :: Map Extension String
- ghcOptOptimisation :: Flag GhcOptimisation
- ghcOptDebugInfo :: Flag Bool
- ghcOptProfilingMode :: Flag Bool
- ghcOptProfilingAuto :: Flag GhcProfAuto
- ghcOptSplitObjs :: Flag Bool
- ghcOptNumJobs :: Flag (Maybe Int)
- ghcOptHPCDir :: Flag FilePath
- ghcOptGHCiScripts :: NubListR 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
- ghcOptRPaths :: NubListR FilePath
- ghcOptVerbosity :: Flag Verbosity
- ghcOptCabal :: Flag Bool
- data GhcMode
- data GhcOptimisation
- data GhcDynLinkMode
- data GhcProfAuto
- ghcInvocation :: ConfiguredProgram -> Compiler -> Platform -> GhcOptions -> ProgramInvocation
- renderGhcOptions :: Compiler -> Platform -> GhcOptions -> [String]
- runGHC :: Verbosity -> ConfiguredProgram -> Compiler -> Platform -> GhcOptions -> IO ()
Documentation
data GhcOptions
A structured set of GHC options/flags
GhcOptions | |
|
Show GhcOptions | |
Generic GhcOptions | |
Monoid GhcOptions | |
Semigroup 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 |
data GhcProfAuto
GhcProfAutoAll | -fprof-auto |
GhcProfAutoToplevel | -fprof-auto-top |
GhcProfAutoExported | -fprof-auto-exported |
Eq GhcProfAuto | |
Show GhcProfAuto |
ghcInvocation :: ConfiguredProgram -> Compiler -> Platform -> GhcOptions -> ProgramInvocation
renderGhcOptions :: Compiler -> Platform -> GhcOptions -> [String]
runGHC :: Verbosity -> ConfiguredProgram -> Compiler -> Platform -> GhcOptions -> IO ()