{-# LANGUAGE RecordWildCards #-}
module GHC.Iface.Recomp.Flags (
fingerprintDynFlags
, fingerprintOptFlags
, fingerprintHpcFlags
) where
import GHC.Prelude
import GHC.Driver.Session
import GHC.Driver.Env
import GHC.Utils.Binary
import GHC.Unit.Module
import GHC.Types.Name
import GHC.Types.SafeHaskell
import GHC.Utils.Fingerprint
import GHC.Iface.Recomp.Binary
import GHC.Core.Opt.CallerCC ()
import GHC.Data.EnumSet as EnumSet
import System.FilePath (normalise)
fingerprintDynFlags :: HscEnv -> Module
-> (BinHandle -> Name -> IO ())
-> IO Fingerprint
fingerprintDynFlags :: HscEnv -> Module -> (BinHandle -> Name -> IO ()) -> IO Fingerprint
fingerprintDynFlags HscEnv
hsc_env Module
this_mod BinHandle -> Name -> IO ()
nameio =
let dflags :: DynFlags
dflags@DynFlags{Bool
Int
String
[Int]
[String]
[(String, String)]
[(ModuleName, String)]
[(ModuleName, Module)]
[ModuleName]
[CallerCcFilter]
[Option]
[ExternalPluginSpec]
[OnOff Extension]
[PackageDBFlag]
[PackageFlag]
[TrustFlag]
[IgnorePackageFlag]
Maybe Int
Maybe String
Maybe Word
Maybe (String, Int)
Maybe UnitId
Maybe Language
Maybe BmiVersion
Maybe SseVersion
Word
IORef (Maybe CompilerInfo)
IORef (Maybe LinkerInfo)
Set ModuleName
Ways
OverridingBool
Scheme
ModuleName
UnitId
UnfoldingOpts
ProfAuto
Weights
SrcSpan
EnumSet Extension
EnumSet WarningFlag
EnumSet GeneralFlag
EnumSet DumpFlag
SafeHaskellMode
IntWithInf
PlatformMisc
Platform
GhcNameVersion
FileSettings
ToolSettings
TempDir
Backend
FlushOut
RtsOptsEnabled
DynLibLoader
GhcLink
GhcMode
IncludeSpecs
ghcMode :: GhcMode
ghcLink :: GhcLink
backend :: Backend
ghcNameVersion :: GhcNameVersion
fileSettings :: FileSettings
targetPlatform :: Platform
toolSettings :: ToolSettings
platformMisc :: PlatformMisc
rawSettings :: [(String, String)]
tmpDir :: TempDir
llvmOptLevel :: Int
verbosity :: Int
debugLevel :: Int
simplPhases :: Int
maxSimplIterations :: Int
ruleCheck :: Maybe String
strictnessBefore :: [Int]
parMakeCount :: Maybe Int
enableTimeStats :: Bool
ghcHeapSize :: Maybe Int
maxRelevantBinds :: Maybe Int
maxValidHoleFits :: Maybe Int
maxRefHoleFits :: Maybe Int
refLevelHoleFits :: Maybe Int
maxUncoveredPatterns :: Int
maxPmCheckModels :: Int
simplTickFactor :: Int
dmdUnboxWidth :: Int
specConstrThreshold :: Maybe Int
specConstrCount :: Maybe Int
specConstrRecursive :: Int
binBlobThreshold :: Maybe Word
liberateCaseThreshold :: Maybe Int
floatLamArgs :: Maybe Int
liftLamsRecArgs :: Maybe Int
liftLamsNonRecArgs :: Maybe Int
liftLamsKnown :: Bool
cmmProcAlignment :: Maybe Int
historySize :: Int
importPaths :: [String]
mainModuleNameIs :: ModuleName
mainFunIs :: Maybe String
reductionDepth :: IntWithInf
solverIterations :: IntWithInf
homeUnitId_ :: UnitId
homeUnitInstanceOf_ :: Maybe UnitId
homeUnitInstantiations_ :: [(ModuleName, Module)]
workingDirectory :: Maybe String
thisPackageName :: Maybe String
hiddenModules :: Set ModuleName
reexportedModules :: Set ModuleName
targetWays_ :: Ways
splitInfo :: Maybe (String, Int)
objectDir :: Maybe String
dylibInstallName :: Maybe String
hiDir :: Maybe String
hieDir :: Maybe String
stubDir :: Maybe String
dumpDir :: Maybe String
objectSuf_ :: String
hcSuf :: String
hiSuf_ :: String
hieSuf :: String
dynObjectSuf_ :: String
dynHiSuf_ :: String
outputFile_ :: Maybe String
dynOutputFile_ :: Maybe String
outputHi :: Maybe String
dynOutputHi :: Maybe String
dynLibLoader :: DynLibLoader
dynamicNow :: Bool
dumpPrefix :: String
dumpPrefixForce :: Maybe String
ldInputs :: [Option]
includePaths :: IncludeSpecs
libraryPaths :: [String]
frameworkPaths :: [String]
cmdlineFrameworks :: [String]
rtsOpts :: Maybe String
rtsOptsEnabled :: RtsOptsEnabled
rtsOptsSuggestions :: Bool
hpcDir :: String
pluginModNames :: [ModuleName]
pluginModNameOpts :: [(ModuleName, String)]
frontendPluginOpts :: [String]
externalPluginSpecs :: [ExternalPluginSpec]
depMakefile :: String
depIncludePkgDeps :: Bool
depIncludeCppDeps :: Bool
depExcludeMods :: [ModuleName]
depSuffixes :: [String]
packageDBFlags :: [PackageDBFlag]
ignorePackageFlags :: [IgnorePackageFlag]
packageFlags :: [PackageFlag]
pluginPackageFlags :: [PackageFlag]
trustFlags :: [TrustFlag]
packageEnv :: Maybe String
dumpFlags :: EnumSet DumpFlag
generalFlags :: EnumSet GeneralFlag
warningFlags :: EnumSet WarningFlag
fatalWarningFlags :: EnumSet WarningFlag
language :: Maybe Language
safeHaskell :: SafeHaskellMode
safeInfer :: Bool
safeInferred :: Bool
thOnLoc :: SrcSpan
newDerivOnLoc :: SrcSpan
deriveViaOnLoc :: SrcSpan
overlapInstLoc :: SrcSpan
incoherentOnLoc :: SrcSpan
pkgTrustOnLoc :: SrcSpan
warnSafeOnLoc :: SrcSpan
warnUnsafeOnLoc :: SrcSpan
trustworthyOnLoc :: SrcSpan
extensions :: [OnOff Extension]
extensionFlags :: EnumSet Extension
unfoldingOpts :: UnfoldingOpts
maxWorkerArgs :: Int
ghciHistSize :: Int
flushOut :: FlushOut
ghcVersionFile :: Maybe String
haddockOptions :: Maybe String
ghciScripts :: [String]
pprUserLength :: Int
pprCols :: Int
useUnicode :: Bool
useColor :: OverridingBool
canUseColor :: Bool
colScheme :: Scheme
profAuto :: ProfAuto
callerCcFilters :: [CallerCcFilter]
interactivePrint :: Maybe String
sseVersion :: Maybe SseVersion
bmiVersion :: Maybe BmiVersion
avx :: Bool
avx2 :: Bool
avx512cd :: Bool
avx512er :: Bool
avx512f :: Bool
avx512pf :: Bool
rtldInfo :: IORef (Maybe LinkerInfo)
rtccInfo :: IORef (Maybe CompilerInfo)
rtasmInfo :: IORef (Maybe CompilerInfo)
maxInlineAllocSize :: Int
maxInlineMemcpyInsns :: Int
maxInlineMemsetInsns :: Int
reverseErrors :: Bool
maxErrors :: Maybe Int
initialUnique :: Word
uniqueIncrement :: Int
cfgWeights :: Weights
ghcMode :: DynFlags -> GhcMode
ghcLink :: DynFlags -> GhcLink
backend :: DynFlags -> Backend
ghcNameVersion :: DynFlags -> GhcNameVersion
fileSettings :: DynFlags -> FileSettings
targetPlatform :: DynFlags -> Platform
toolSettings :: DynFlags -> ToolSettings
platformMisc :: DynFlags -> PlatformMisc
rawSettings :: DynFlags -> [(String, String)]
tmpDir :: DynFlags -> TempDir
llvmOptLevel :: DynFlags -> Int
verbosity :: DynFlags -> Int
debugLevel :: DynFlags -> Int
simplPhases :: DynFlags -> Int
maxSimplIterations :: DynFlags -> Int
ruleCheck :: DynFlags -> Maybe String
strictnessBefore :: DynFlags -> [Int]
parMakeCount :: DynFlags -> Maybe Int
enableTimeStats :: DynFlags -> Bool
ghcHeapSize :: DynFlags -> Maybe Int
maxRelevantBinds :: DynFlags -> Maybe Int
maxValidHoleFits :: DynFlags -> Maybe Int
maxRefHoleFits :: DynFlags -> Maybe Int
refLevelHoleFits :: DynFlags -> Maybe Int
maxUncoveredPatterns :: DynFlags -> Int
maxPmCheckModels :: DynFlags -> Int
simplTickFactor :: DynFlags -> Int
dmdUnboxWidth :: DynFlags -> Int
specConstrThreshold :: DynFlags -> Maybe Int
specConstrCount :: DynFlags -> Maybe Int
specConstrRecursive :: DynFlags -> Int
binBlobThreshold :: DynFlags -> Maybe Word
liberateCaseThreshold :: DynFlags -> Maybe Int
floatLamArgs :: DynFlags -> Maybe Int
liftLamsRecArgs :: DynFlags -> Maybe Int
liftLamsNonRecArgs :: DynFlags -> Maybe Int
liftLamsKnown :: DynFlags -> Bool
cmmProcAlignment :: DynFlags -> Maybe Int
historySize :: DynFlags -> Int
importPaths :: DynFlags -> [String]
mainModuleNameIs :: DynFlags -> ModuleName
mainFunIs :: DynFlags -> Maybe String
reductionDepth :: DynFlags -> IntWithInf
solverIterations :: DynFlags -> IntWithInf
homeUnitId_ :: DynFlags -> UnitId
homeUnitInstanceOf_ :: DynFlags -> Maybe UnitId
homeUnitInstantiations_ :: DynFlags -> [(ModuleName, Module)]
workingDirectory :: DynFlags -> Maybe String
thisPackageName :: DynFlags -> Maybe String
hiddenModules :: DynFlags -> Set ModuleName
reexportedModules :: DynFlags -> Set ModuleName
targetWays_ :: DynFlags -> Ways
splitInfo :: DynFlags -> Maybe (String, Int)
objectDir :: DynFlags -> Maybe String
dylibInstallName :: DynFlags -> Maybe String
hiDir :: DynFlags -> Maybe String
hieDir :: DynFlags -> Maybe String
stubDir :: DynFlags -> Maybe String
dumpDir :: DynFlags -> Maybe String
objectSuf_ :: DynFlags -> String
hcSuf :: DynFlags -> String
hiSuf_ :: DynFlags -> String
hieSuf :: DynFlags -> String
dynObjectSuf_ :: DynFlags -> String
dynHiSuf_ :: DynFlags -> String
outputFile_ :: DynFlags -> Maybe String
dynOutputFile_ :: DynFlags -> Maybe String
outputHi :: DynFlags -> Maybe String
dynOutputHi :: DynFlags -> Maybe String
dynLibLoader :: DynFlags -> DynLibLoader
dynamicNow :: DynFlags -> Bool
dumpPrefix :: DynFlags -> String
dumpPrefixForce :: DynFlags -> Maybe String
ldInputs :: DynFlags -> [Option]
includePaths :: DynFlags -> IncludeSpecs
libraryPaths :: DynFlags -> [String]
frameworkPaths :: DynFlags -> [String]
cmdlineFrameworks :: DynFlags -> [String]
rtsOpts :: DynFlags -> Maybe String
rtsOptsEnabled :: DynFlags -> RtsOptsEnabled
rtsOptsSuggestions :: DynFlags -> Bool
hpcDir :: DynFlags -> String
pluginModNames :: DynFlags -> [ModuleName]
pluginModNameOpts :: DynFlags -> [(ModuleName, String)]
frontendPluginOpts :: DynFlags -> [String]
externalPluginSpecs :: DynFlags -> [ExternalPluginSpec]
depMakefile :: DynFlags -> String
depIncludePkgDeps :: DynFlags -> Bool
depIncludeCppDeps :: DynFlags -> Bool
depExcludeMods :: DynFlags -> [ModuleName]
depSuffixes :: DynFlags -> [String]
packageDBFlags :: DynFlags -> [PackageDBFlag]
ignorePackageFlags :: DynFlags -> [IgnorePackageFlag]
packageFlags :: DynFlags -> [PackageFlag]
pluginPackageFlags :: DynFlags -> [PackageFlag]
trustFlags :: DynFlags -> [TrustFlag]
packageEnv :: DynFlags -> Maybe String
dumpFlags :: DynFlags -> EnumSet DumpFlag
generalFlags :: DynFlags -> EnumSet GeneralFlag
warningFlags :: DynFlags -> EnumSet WarningFlag
fatalWarningFlags :: DynFlags -> EnumSet WarningFlag
language :: DynFlags -> Maybe Language
safeHaskell :: DynFlags -> SafeHaskellMode
safeInfer :: DynFlags -> Bool
safeInferred :: DynFlags -> Bool
thOnLoc :: DynFlags -> SrcSpan
newDerivOnLoc :: DynFlags -> SrcSpan
deriveViaOnLoc :: DynFlags -> SrcSpan
overlapInstLoc :: DynFlags -> SrcSpan
incoherentOnLoc :: DynFlags -> SrcSpan
pkgTrustOnLoc :: DynFlags -> SrcSpan
warnSafeOnLoc :: DynFlags -> SrcSpan
warnUnsafeOnLoc :: DynFlags -> SrcSpan
trustworthyOnLoc :: DynFlags -> SrcSpan
extensions :: DynFlags -> [OnOff Extension]
extensionFlags :: DynFlags -> EnumSet Extension
unfoldingOpts :: DynFlags -> UnfoldingOpts
maxWorkerArgs :: DynFlags -> Int
ghciHistSize :: DynFlags -> Int
flushOut :: DynFlags -> FlushOut
ghcVersionFile :: DynFlags -> Maybe String
haddockOptions :: DynFlags -> Maybe String
ghciScripts :: DynFlags -> [String]
pprUserLength :: DynFlags -> Int
pprCols :: DynFlags -> Int
useUnicode :: DynFlags -> Bool
useColor :: DynFlags -> OverridingBool
canUseColor :: DynFlags -> Bool
colScheme :: DynFlags -> Scheme
profAuto :: DynFlags -> ProfAuto
callerCcFilters :: DynFlags -> [CallerCcFilter]
interactivePrint :: DynFlags -> Maybe String
sseVersion :: DynFlags -> Maybe SseVersion
bmiVersion :: DynFlags -> Maybe BmiVersion
avx :: DynFlags -> Bool
avx2 :: DynFlags -> Bool
avx512cd :: DynFlags -> Bool
avx512er :: DynFlags -> Bool
avx512f :: DynFlags -> Bool
avx512pf :: DynFlags -> Bool
rtldInfo :: DynFlags -> IORef (Maybe LinkerInfo)
rtccInfo :: DynFlags -> IORef (Maybe CompilerInfo)
rtasmInfo :: DynFlags -> IORef (Maybe CompilerInfo)
maxInlineAllocSize :: DynFlags -> Int
maxInlineMemcpyInsns :: DynFlags -> Int
maxInlineMemsetInsns :: DynFlags -> Int
reverseErrors :: DynFlags -> Bool
maxErrors :: DynFlags -> Maybe Int
initialUnique :: DynFlags -> Word
uniqueIncrement :: DynFlags -> Int
cfgWeights :: DynFlags -> Weights
..} = HscEnv -> DynFlags
hsc_dflags HscEnv
hsc_env
mainis :: Maybe (Maybe String)
mainis = if HomeUnitEnv -> Module
mainModIs (HscEnv -> HomeUnitEnv
hsc_HUE HscEnv
hsc_env) Module -> Module -> Bool
forall a. Eq a => a -> a -> Bool
== Module
this_mod then Maybe String -> Maybe (Maybe String)
forall a. a -> Maybe a
Just Maybe String
mainFunIs else Maybe (Maybe String)
forall a. Maybe a
Nothing
safeHs :: IfaceTrustInfo
safeHs = SafeHaskellMode -> IfaceTrustInfo
setSafeMode SafeHaskellMode
safeHaskell
lang :: (Maybe Int, [Int])
lang = ((Language -> Int) -> Maybe Language -> Maybe Int
forall a b. (a -> b) -> Maybe a -> Maybe b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Language -> Int
forall a. Enum a => a -> Int
fromEnum Maybe Language
language,
(Extension -> Int) -> [Extension] -> [Int]
forall a b. (a -> b) -> [a] -> [b]
map Extension -> Int
forall a. Enum a => a -> Int
fromEnum ([Extension] -> [Int]) -> [Extension] -> [Int]
forall a b. (a -> b) -> a -> b
$ EnumSet Extension -> [Extension]
forall a. Enum a => EnumSet a -> [a]
EnumSet.toList EnumSet Extension
extensionFlags)
includePathsMinusImplicit :: IncludeSpecs
includePathsMinusImplicit = IncludeSpecs
includePaths { includePathsQuoteImplicit = [] }
cpp :: ([String], [String], ([String], Fingerprint))
cpp = ( (String -> String) -> [String] -> [String]
forall a b. (a -> b) -> [a] -> [b]
map String -> String
normalise ([String] -> [String]) -> [String] -> [String]
forall a b. (a -> b) -> a -> b
$ IncludeSpecs -> [String]
flattenIncludes IncludeSpecs
includePathsMinusImplicit
, DynFlags -> [String]
picPOpts DynFlags
dflags
, DynFlags -> ([String], Fingerprint)
opt_P_signature DynFlags
dflags)
paths :: [String]
paths = [ String
hcSuf ]
prof :: Int
prof = if DynFlags -> Bool
sccProfilingEnabled DynFlags
dflags then ProfAuto -> Int
forall a. Enum a => a -> Int
fromEnum ProfAuto
profAuto else Int
0
ticky :: [Bool]
ticky =
(GeneralFlag -> Bool) -> [GeneralFlag] -> [Bool]
forall a b. (a -> b) -> [a] -> [b]
map (GeneralFlag -> DynFlags -> Bool
`gopt` DynFlags
dflags) [GeneralFlag
Opt_Ticky, GeneralFlag
Opt_Ticky_Allocd, GeneralFlag
Opt_Ticky_LNE, GeneralFlag
Opt_Ticky_Dyn_Thunk, GeneralFlag
Opt_Ticky_Tag]
flags :: ((Maybe (Maybe String), IfaceTrustInfo, (Maybe Int, [Int]),
([String], [String], ([String], Fingerprint))),
([String], Int, [Bool], Int, [CallerCcFilter]))
flags = ((Maybe (Maybe String)
mainis, IfaceTrustInfo
safeHs, (Maybe Int, [Int])
lang, ([String], [String], ([String], Fingerprint))
cpp), ([String]
paths, Int
prof, [Bool]
ticky, Int
debugLevel, [CallerCcFilter]
callerCcFilters))
in
(BinHandle -> Name -> IO ())
-> ((Maybe (Maybe String), IfaceTrustInfo, (Maybe Int, [Int]),
([String], [String], ([String], Fingerprint))),
([String], Int, [Bool], Int, [CallerCcFilter]))
-> IO Fingerprint
forall a.
Binary a =>
(BinHandle -> Name -> IO ()) -> a -> IO Fingerprint
computeFingerprint BinHandle -> Name -> IO ()
nameio ((Maybe (Maybe String), IfaceTrustInfo, (Maybe Int, [Int]),
([String], [String], ([String], Fingerprint))),
([String], Int, [Bool], Int, [CallerCcFilter]))
flags
fingerprintOptFlags :: DynFlags
-> (BinHandle -> Name -> IO ())
-> IO Fingerprint
fingerprintOptFlags :: DynFlags -> (BinHandle -> Name -> IO ()) -> IO Fingerprint
fingerprintOptFlags DynFlags{Bool
Int
String
[Int]
[String]
[(String, String)]
[(ModuleName, String)]
[(ModuleName, Module)]
[ModuleName]
[CallerCcFilter]
[Option]
[ExternalPluginSpec]
[OnOff Extension]
[PackageDBFlag]
[PackageFlag]
[TrustFlag]
[IgnorePackageFlag]
Maybe Int
Maybe String
Maybe Word
Maybe (String, Int)
Maybe UnitId
Maybe Language
Maybe BmiVersion
Maybe SseVersion
Word
IORef (Maybe CompilerInfo)
IORef (Maybe LinkerInfo)
Set ModuleName
Ways
OverridingBool
Scheme
ModuleName
UnitId
UnfoldingOpts
ProfAuto
Weights
SrcSpan
EnumSet Extension
EnumSet WarningFlag
EnumSet GeneralFlag
EnumSet DumpFlag
SafeHaskellMode
IntWithInf
PlatformMisc
Platform
GhcNameVersion
FileSettings
ToolSettings
TempDir
Backend
FlushOut
RtsOptsEnabled
DynLibLoader
GhcLink
GhcMode
IncludeSpecs
ghcMode :: DynFlags -> GhcMode
ghcLink :: DynFlags -> GhcLink
backend :: DynFlags -> Backend
ghcNameVersion :: DynFlags -> GhcNameVersion
fileSettings :: DynFlags -> FileSettings
targetPlatform :: DynFlags -> Platform
toolSettings :: DynFlags -> ToolSettings
platformMisc :: DynFlags -> PlatformMisc
rawSettings :: DynFlags -> [(String, String)]
tmpDir :: DynFlags -> TempDir
llvmOptLevel :: DynFlags -> Int
verbosity :: DynFlags -> Int
debugLevel :: DynFlags -> Int
simplPhases :: DynFlags -> Int
maxSimplIterations :: DynFlags -> Int
ruleCheck :: DynFlags -> Maybe String
strictnessBefore :: DynFlags -> [Int]
parMakeCount :: DynFlags -> Maybe Int
enableTimeStats :: DynFlags -> Bool
ghcHeapSize :: DynFlags -> Maybe Int
maxRelevantBinds :: DynFlags -> Maybe Int
maxValidHoleFits :: DynFlags -> Maybe Int
maxRefHoleFits :: DynFlags -> Maybe Int
refLevelHoleFits :: DynFlags -> Maybe Int
maxUncoveredPatterns :: DynFlags -> Int
maxPmCheckModels :: DynFlags -> Int
simplTickFactor :: DynFlags -> Int
dmdUnboxWidth :: DynFlags -> Int
specConstrThreshold :: DynFlags -> Maybe Int
specConstrCount :: DynFlags -> Maybe Int
specConstrRecursive :: DynFlags -> Int
binBlobThreshold :: DynFlags -> Maybe Word
liberateCaseThreshold :: DynFlags -> Maybe Int
floatLamArgs :: DynFlags -> Maybe Int
liftLamsRecArgs :: DynFlags -> Maybe Int
liftLamsNonRecArgs :: DynFlags -> Maybe Int
liftLamsKnown :: DynFlags -> Bool
cmmProcAlignment :: DynFlags -> Maybe Int
historySize :: DynFlags -> Int
importPaths :: DynFlags -> [String]
mainModuleNameIs :: DynFlags -> ModuleName
mainFunIs :: DynFlags -> Maybe String
reductionDepth :: DynFlags -> IntWithInf
solverIterations :: DynFlags -> IntWithInf
homeUnitId_ :: DynFlags -> UnitId
homeUnitInstanceOf_ :: DynFlags -> Maybe UnitId
homeUnitInstantiations_ :: DynFlags -> [(ModuleName, Module)]
workingDirectory :: DynFlags -> Maybe String
thisPackageName :: DynFlags -> Maybe String
hiddenModules :: DynFlags -> Set ModuleName
reexportedModules :: DynFlags -> Set ModuleName
targetWays_ :: DynFlags -> Ways
splitInfo :: DynFlags -> Maybe (String, Int)
objectDir :: DynFlags -> Maybe String
dylibInstallName :: DynFlags -> Maybe String
hiDir :: DynFlags -> Maybe String
hieDir :: DynFlags -> Maybe String
stubDir :: DynFlags -> Maybe String
dumpDir :: DynFlags -> Maybe String
objectSuf_ :: DynFlags -> String
hcSuf :: DynFlags -> String
hiSuf_ :: DynFlags -> String
hieSuf :: DynFlags -> String
dynObjectSuf_ :: DynFlags -> String
dynHiSuf_ :: DynFlags -> String
outputFile_ :: DynFlags -> Maybe String
dynOutputFile_ :: DynFlags -> Maybe String
outputHi :: DynFlags -> Maybe String
dynOutputHi :: DynFlags -> Maybe String
dynLibLoader :: DynFlags -> DynLibLoader
dynamicNow :: DynFlags -> Bool
dumpPrefix :: DynFlags -> String
dumpPrefixForce :: DynFlags -> Maybe String
ldInputs :: DynFlags -> [Option]
includePaths :: DynFlags -> IncludeSpecs
libraryPaths :: DynFlags -> [String]
frameworkPaths :: DynFlags -> [String]
cmdlineFrameworks :: DynFlags -> [String]
rtsOpts :: DynFlags -> Maybe String
rtsOptsEnabled :: DynFlags -> RtsOptsEnabled
rtsOptsSuggestions :: DynFlags -> Bool
hpcDir :: DynFlags -> String
pluginModNames :: DynFlags -> [ModuleName]
pluginModNameOpts :: DynFlags -> [(ModuleName, String)]
frontendPluginOpts :: DynFlags -> [String]
externalPluginSpecs :: DynFlags -> [ExternalPluginSpec]
depMakefile :: DynFlags -> String
depIncludePkgDeps :: DynFlags -> Bool
depIncludeCppDeps :: DynFlags -> Bool
depExcludeMods :: DynFlags -> [ModuleName]
depSuffixes :: DynFlags -> [String]
packageDBFlags :: DynFlags -> [PackageDBFlag]
ignorePackageFlags :: DynFlags -> [IgnorePackageFlag]
packageFlags :: DynFlags -> [PackageFlag]
pluginPackageFlags :: DynFlags -> [PackageFlag]
trustFlags :: DynFlags -> [TrustFlag]
packageEnv :: DynFlags -> Maybe String
dumpFlags :: DynFlags -> EnumSet DumpFlag
generalFlags :: DynFlags -> EnumSet GeneralFlag
warningFlags :: DynFlags -> EnumSet WarningFlag
fatalWarningFlags :: DynFlags -> EnumSet WarningFlag
language :: DynFlags -> Maybe Language
safeHaskell :: DynFlags -> SafeHaskellMode
safeInfer :: DynFlags -> Bool
safeInferred :: DynFlags -> Bool
thOnLoc :: DynFlags -> SrcSpan
newDerivOnLoc :: DynFlags -> SrcSpan
deriveViaOnLoc :: DynFlags -> SrcSpan
overlapInstLoc :: DynFlags -> SrcSpan
incoherentOnLoc :: DynFlags -> SrcSpan
pkgTrustOnLoc :: DynFlags -> SrcSpan
warnSafeOnLoc :: DynFlags -> SrcSpan
warnUnsafeOnLoc :: DynFlags -> SrcSpan
trustworthyOnLoc :: DynFlags -> SrcSpan
extensions :: DynFlags -> [OnOff Extension]
extensionFlags :: DynFlags -> EnumSet Extension
unfoldingOpts :: DynFlags -> UnfoldingOpts
maxWorkerArgs :: DynFlags -> Int
ghciHistSize :: DynFlags -> Int
flushOut :: DynFlags -> FlushOut
ghcVersionFile :: DynFlags -> Maybe String
haddockOptions :: DynFlags -> Maybe String
ghciScripts :: DynFlags -> [String]
pprUserLength :: DynFlags -> Int
pprCols :: DynFlags -> Int
useUnicode :: DynFlags -> Bool
useColor :: DynFlags -> OverridingBool
canUseColor :: DynFlags -> Bool
colScheme :: DynFlags -> Scheme
profAuto :: DynFlags -> ProfAuto
callerCcFilters :: DynFlags -> [CallerCcFilter]
interactivePrint :: DynFlags -> Maybe String
sseVersion :: DynFlags -> Maybe SseVersion
bmiVersion :: DynFlags -> Maybe BmiVersion
avx :: DynFlags -> Bool
avx2 :: DynFlags -> Bool
avx512cd :: DynFlags -> Bool
avx512er :: DynFlags -> Bool
avx512f :: DynFlags -> Bool
avx512pf :: DynFlags -> Bool
rtldInfo :: DynFlags -> IORef (Maybe LinkerInfo)
rtccInfo :: DynFlags -> IORef (Maybe CompilerInfo)
rtasmInfo :: DynFlags -> IORef (Maybe CompilerInfo)
maxInlineAllocSize :: DynFlags -> Int
maxInlineMemcpyInsns :: DynFlags -> Int
maxInlineMemsetInsns :: DynFlags -> Int
reverseErrors :: DynFlags -> Bool
maxErrors :: DynFlags -> Maybe Int
initialUnique :: DynFlags -> Word
uniqueIncrement :: DynFlags -> Int
cfgWeights :: DynFlags -> Weights
ghcMode :: GhcMode
ghcLink :: GhcLink
backend :: Backend
ghcNameVersion :: GhcNameVersion
fileSettings :: FileSettings
targetPlatform :: Platform
toolSettings :: ToolSettings
platformMisc :: PlatformMisc
rawSettings :: [(String, String)]
tmpDir :: TempDir
llvmOptLevel :: Int
verbosity :: Int
debugLevel :: Int
simplPhases :: Int
maxSimplIterations :: Int
ruleCheck :: Maybe String
strictnessBefore :: [Int]
parMakeCount :: Maybe Int
enableTimeStats :: Bool
ghcHeapSize :: Maybe Int
maxRelevantBinds :: Maybe Int
maxValidHoleFits :: Maybe Int
maxRefHoleFits :: Maybe Int
refLevelHoleFits :: Maybe Int
maxUncoveredPatterns :: Int
maxPmCheckModels :: Int
simplTickFactor :: Int
dmdUnboxWidth :: Int
specConstrThreshold :: Maybe Int
specConstrCount :: Maybe Int
specConstrRecursive :: Int
binBlobThreshold :: Maybe Word
liberateCaseThreshold :: Maybe Int
floatLamArgs :: Maybe Int
liftLamsRecArgs :: Maybe Int
liftLamsNonRecArgs :: Maybe Int
liftLamsKnown :: Bool
cmmProcAlignment :: Maybe Int
historySize :: Int
importPaths :: [String]
mainModuleNameIs :: ModuleName
mainFunIs :: Maybe String
reductionDepth :: IntWithInf
solverIterations :: IntWithInf
homeUnitId_ :: UnitId
homeUnitInstanceOf_ :: Maybe UnitId
homeUnitInstantiations_ :: [(ModuleName, Module)]
workingDirectory :: Maybe String
thisPackageName :: Maybe String
hiddenModules :: Set ModuleName
reexportedModules :: Set ModuleName
targetWays_ :: Ways
splitInfo :: Maybe (String, Int)
objectDir :: Maybe String
dylibInstallName :: Maybe String
hiDir :: Maybe String
hieDir :: Maybe String
stubDir :: Maybe String
dumpDir :: Maybe String
objectSuf_ :: String
hcSuf :: String
hiSuf_ :: String
hieSuf :: String
dynObjectSuf_ :: String
dynHiSuf_ :: String
outputFile_ :: Maybe String
dynOutputFile_ :: Maybe String
outputHi :: Maybe String
dynOutputHi :: Maybe String
dynLibLoader :: DynLibLoader
dynamicNow :: Bool
dumpPrefix :: String
dumpPrefixForce :: Maybe String
ldInputs :: [Option]
includePaths :: IncludeSpecs
libraryPaths :: [String]
frameworkPaths :: [String]
cmdlineFrameworks :: [String]
rtsOpts :: Maybe String
rtsOptsEnabled :: RtsOptsEnabled
rtsOptsSuggestions :: Bool
hpcDir :: String
pluginModNames :: [ModuleName]
pluginModNameOpts :: [(ModuleName, String)]
frontendPluginOpts :: [String]
externalPluginSpecs :: [ExternalPluginSpec]
depMakefile :: String
depIncludePkgDeps :: Bool
depIncludeCppDeps :: Bool
depExcludeMods :: [ModuleName]
depSuffixes :: [String]
packageDBFlags :: [PackageDBFlag]
ignorePackageFlags :: [IgnorePackageFlag]
packageFlags :: [PackageFlag]
pluginPackageFlags :: [PackageFlag]
trustFlags :: [TrustFlag]
packageEnv :: Maybe String
dumpFlags :: EnumSet DumpFlag
generalFlags :: EnumSet GeneralFlag
warningFlags :: EnumSet WarningFlag
fatalWarningFlags :: EnumSet WarningFlag
language :: Maybe Language
safeHaskell :: SafeHaskellMode
safeInfer :: Bool
safeInferred :: Bool
thOnLoc :: SrcSpan
newDerivOnLoc :: SrcSpan
deriveViaOnLoc :: SrcSpan
overlapInstLoc :: SrcSpan
incoherentOnLoc :: SrcSpan
pkgTrustOnLoc :: SrcSpan
warnSafeOnLoc :: SrcSpan
warnUnsafeOnLoc :: SrcSpan
trustworthyOnLoc :: SrcSpan
extensions :: [OnOff Extension]
extensionFlags :: EnumSet Extension
unfoldingOpts :: UnfoldingOpts
maxWorkerArgs :: Int
ghciHistSize :: Int
flushOut :: FlushOut
ghcVersionFile :: Maybe String
haddockOptions :: Maybe String
ghciScripts :: [String]
pprUserLength :: Int
pprCols :: Int
useUnicode :: Bool
useColor :: OverridingBool
canUseColor :: Bool
colScheme :: Scheme
profAuto :: ProfAuto
callerCcFilters :: [CallerCcFilter]
interactivePrint :: Maybe String
sseVersion :: Maybe SseVersion
bmiVersion :: Maybe BmiVersion
avx :: Bool
avx2 :: Bool
avx512cd :: Bool
avx512er :: Bool
avx512f :: Bool
avx512pf :: Bool
rtldInfo :: IORef (Maybe LinkerInfo)
rtccInfo :: IORef (Maybe CompilerInfo)
rtasmInfo :: IORef (Maybe CompilerInfo)
maxInlineAllocSize :: Int
maxInlineMemcpyInsns :: Int
maxInlineMemsetInsns :: Int
reverseErrors :: Bool
maxErrors :: Maybe Int
initialUnique :: Word
uniqueIncrement :: Int
cfgWeights :: Weights
..} BinHandle -> Name -> IO ()
nameio =
let
opt_flags :: [Int]
opt_flags = (GeneralFlag -> Int) -> [GeneralFlag] -> [Int]
forall a b. (a -> b) -> [a] -> [b]
map GeneralFlag -> Int
forall a. Enum a => a -> Int
fromEnum ([GeneralFlag] -> [Int]) -> [GeneralFlag] -> [Int]
forall a b. (a -> b) -> a -> b
$ (GeneralFlag -> Bool) -> [GeneralFlag] -> [GeneralFlag]
forall a. (a -> Bool) -> [a] -> [a]
filter (GeneralFlag -> EnumSet GeneralFlag -> Bool
forall a. Enum a => a -> EnumSet a -> Bool
`EnumSet.member` EnumSet GeneralFlag
optimisationFlags)
(EnumSet GeneralFlag -> [GeneralFlag]
forall a. Enum a => EnumSet a -> [a]
EnumSet.toList EnumSet GeneralFlag
generalFlags)
in (BinHandle -> Name -> IO ()) -> [Int] -> IO Fingerprint
forall a.
Binary a =>
(BinHandle -> Name -> IO ()) -> a -> IO Fingerprint
computeFingerprint BinHandle -> Name -> IO ()
nameio [Int]
opt_flags
fingerprintHpcFlags :: DynFlags
-> (BinHandle -> Name -> IO ())
-> IO Fingerprint
fingerprintHpcFlags :: DynFlags -> (BinHandle -> Name -> IO ()) -> IO Fingerprint
fingerprintHpcFlags dflags :: DynFlags
dflags@DynFlags{Bool
Int
String
[Int]
[String]
[(String, String)]
[(ModuleName, String)]
[(ModuleName, Module)]
[ModuleName]
[CallerCcFilter]
[Option]
[ExternalPluginSpec]
[OnOff Extension]
[PackageDBFlag]
[PackageFlag]
[TrustFlag]
[IgnorePackageFlag]
Maybe Int
Maybe String
Maybe Word
Maybe (String, Int)
Maybe UnitId
Maybe Language
Maybe BmiVersion
Maybe SseVersion
Word
IORef (Maybe CompilerInfo)
IORef (Maybe LinkerInfo)
Set ModuleName
Ways
OverridingBool
Scheme
ModuleName
UnitId
UnfoldingOpts
ProfAuto
Weights
SrcSpan
EnumSet Extension
EnumSet WarningFlag
EnumSet GeneralFlag
EnumSet DumpFlag
SafeHaskellMode
IntWithInf
PlatformMisc
Platform
GhcNameVersion
FileSettings
ToolSettings
TempDir
Backend
FlushOut
RtsOptsEnabled
DynLibLoader
GhcLink
GhcMode
IncludeSpecs
ghcMode :: DynFlags -> GhcMode
ghcLink :: DynFlags -> GhcLink
backend :: DynFlags -> Backend
ghcNameVersion :: DynFlags -> GhcNameVersion
fileSettings :: DynFlags -> FileSettings
targetPlatform :: DynFlags -> Platform
toolSettings :: DynFlags -> ToolSettings
platformMisc :: DynFlags -> PlatformMisc
rawSettings :: DynFlags -> [(String, String)]
tmpDir :: DynFlags -> TempDir
llvmOptLevel :: DynFlags -> Int
verbosity :: DynFlags -> Int
debugLevel :: DynFlags -> Int
simplPhases :: DynFlags -> Int
maxSimplIterations :: DynFlags -> Int
ruleCheck :: DynFlags -> Maybe String
strictnessBefore :: DynFlags -> [Int]
parMakeCount :: DynFlags -> Maybe Int
enableTimeStats :: DynFlags -> Bool
ghcHeapSize :: DynFlags -> Maybe Int
maxRelevantBinds :: DynFlags -> Maybe Int
maxValidHoleFits :: DynFlags -> Maybe Int
maxRefHoleFits :: DynFlags -> Maybe Int
refLevelHoleFits :: DynFlags -> Maybe Int
maxUncoveredPatterns :: DynFlags -> Int
maxPmCheckModels :: DynFlags -> Int
simplTickFactor :: DynFlags -> Int
dmdUnboxWidth :: DynFlags -> Int
specConstrThreshold :: DynFlags -> Maybe Int
specConstrCount :: DynFlags -> Maybe Int
specConstrRecursive :: DynFlags -> Int
binBlobThreshold :: DynFlags -> Maybe Word
liberateCaseThreshold :: DynFlags -> Maybe Int
floatLamArgs :: DynFlags -> Maybe Int
liftLamsRecArgs :: DynFlags -> Maybe Int
liftLamsNonRecArgs :: DynFlags -> Maybe Int
liftLamsKnown :: DynFlags -> Bool
cmmProcAlignment :: DynFlags -> Maybe Int
historySize :: DynFlags -> Int
importPaths :: DynFlags -> [String]
mainModuleNameIs :: DynFlags -> ModuleName
mainFunIs :: DynFlags -> Maybe String
reductionDepth :: DynFlags -> IntWithInf
solverIterations :: DynFlags -> IntWithInf
homeUnitId_ :: DynFlags -> UnitId
homeUnitInstanceOf_ :: DynFlags -> Maybe UnitId
homeUnitInstantiations_ :: DynFlags -> [(ModuleName, Module)]
workingDirectory :: DynFlags -> Maybe String
thisPackageName :: DynFlags -> Maybe String
hiddenModules :: DynFlags -> Set ModuleName
reexportedModules :: DynFlags -> Set ModuleName
targetWays_ :: DynFlags -> Ways
splitInfo :: DynFlags -> Maybe (String, Int)
objectDir :: DynFlags -> Maybe String
dylibInstallName :: DynFlags -> Maybe String
hiDir :: DynFlags -> Maybe String
hieDir :: DynFlags -> Maybe String
stubDir :: DynFlags -> Maybe String
dumpDir :: DynFlags -> Maybe String
objectSuf_ :: DynFlags -> String
hcSuf :: DynFlags -> String
hiSuf_ :: DynFlags -> String
hieSuf :: DynFlags -> String
dynObjectSuf_ :: DynFlags -> String
dynHiSuf_ :: DynFlags -> String
outputFile_ :: DynFlags -> Maybe String
dynOutputFile_ :: DynFlags -> Maybe String
outputHi :: DynFlags -> Maybe String
dynOutputHi :: DynFlags -> Maybe String
dynLibLoader :: DynFlags -> DynLibLoader
dynamicNow :: DynFlags -> Bool
dumpPrefix :: DynFlags -> String
dumpPrefixForce :: DynFlags -> Maybe String
ldInputs :: DynFlags -> [Option]
includePaths :: DynFlags -> IncludeSpecs
libraryPaths :: DynFlags -> [String]
frameworkPaths :: DynFlags -> [String]
cmdlineFrameworks :: DynFlags -> [String]
rtsOpts :: DynFlags -> Maybe String
rtsOptsEnabled :: DynFlags -> RtsOptsEnabled
rtsOptsSuggestions :: DynFlags -> Bool
hpcDir :: DynFlags -> String
pluginModNames :: DynFlags -> [ModuleName]
pluginModNameOpts :: DynFlags -> [(ModuleName, String)]
frontendPluginOpts :: DynFlags -> [String]
externalPluginSpecs :: DynFlags -> [ExternalPluginSpec]
depMakefile :: DynFlags -> String
depIncludePkgDeps :: DynFlags -> Bool
depIncludeCppDeps :: DynFlags -> Bool
depExcludeMods :: DynFlags -> [ModuleName]
depSuffixes :: DynFlags -> [String]
packageDBFlags :: DynFlags -> [PackageDBFlag]
ignorePackageFlags :: DynFlags -> [IgnorePackageFlag]
packageFlags :: DynFlags -> [PackageFlag]
pluginPackageFlags :: DynFlags -> [PackageFlag]
trustFlags :: DynFlags -> [TrustFlag]
packageEnv :: DynFlags -> Maybe String
dumpFlags :: DynFlags -> EnumSet DumpFlag
generalFlags :: DynFlags -> EnumSet GeneralFlag
warningFlags :: DynFlags -> EnumSet WarningFlag
fatalWarningFlags :: DynFlags -> EnumSet WarningFlag
language :: DynFlags -> Maybe Language
safeHaskell :: DynFlags -> SafeHaskellMode
safeInfer :: DynFlags -> Bool
safeInferred :: DynFlags -> Bool
thOnLoc :: DynFlags -> SrcSpan
newDerivOnLoc :: DynFlags -> SrcSpan
deriveViaOnLoc :: DynFlags -> SrcSpan
overlapInstLoc :: DynFlags -> SrcSpan
incoherentOnLoc :: DynFlags -> SrcSpan
pkgTrustOnLoc :: DynFlags -> SrcSpan
warnSafeOnLoc :: DynFlags -> SrcSpan
warnUnsafeOnLoc :: DynFlags -> SrcSpan
trustworthyOnLoc :: DynFlags -> SrcSpan
extensions :: DynFlags -> [OnOff Extension]
extensionFlags :: DynFlags -> EnumSet Extension
unfoldingOpts :: DynFlags -> UnfoldingOpts
maxWorkerArgs :: DynFlags -> Int
ghciHistSize :: DynFlags -> Int
flushOut :: DynFlags -> FlushOut
ghcVersionFile :: DynFlags -> Maybe String
haddockOptions :: DynFlags -> Maybe String
ghciScripts :: DynFlags -> [String]
pprUserLength :: DynFlags -> Int
pprCols :: DynFlags -> Int
useUnicode :: DynFlags -> Bool
useColor :: DynFlags -> OverridingBool
canUseColor :: DynFlags -> Bool
colScheme :: DynFlags -> Scheme
profAuto :: DynFlags -> ProfAuto
callerCcFilters :: DynFlags -> [CallerCcFilter]
interactivePrint :: DynFlags -> Maybe String
sseVersion :: DynFlags -> Maybe SseVersion
bmiVersion :: DynFlags -> Maybe BmiVersion
avx :: DynFlags -> Bool
avx2 :: DynFlags -> Bool
avx512cd :: DynFlags -> Bool
avx512er :: DynFlags -> Bool
avx512f :: DynFlags -> Bool
avx512pf :: DynFlags -> Bool
rtldInfo :: DynFlags -> IORef (Maybe LinkerInfo)
rtccInfo :: DynFlags -> IORef (Maybe CompilerInfo)
rtasmInfo :: DynFlags -> IORef (Maybe CompilerInfo)
maxInlineAllocSize :: DynFlags -> Int
maxInlineMemcpyInsns :: DynFlags -> Int
maxInlineMemsetInsns :: DynFlags -> Int
reverseErrors :: DynFlags -> Bool
maxErrors :: DynFlags -> Maybe Int
initialUnique :: DynFlags -> Word
uniqueIncrement :: DynFlags -> Int
cfgWeights :: DynFlags -> Weights
ghcMode :: GhcMode
ghcLink :: GhcLink
backend :: Backend
ghcNameVersion :: GhcNameVersion
fileSettings :: FileSettings
targetPlatform :: Platform
toolSettings :: ToolSettings
platformMisc :: PlatformMisc
rawSettings :: [(String, String)]
tmpDir :: TempDir
llvmOptLevel :: Int
verbosity :: Int
debugLevel :: Int
simplPhases :: Int
maxSimplIterations :: Int
ruleCheck :: Maybe String
strictnessBefore :: [Int]
parMakeCount :: Maybe Int
enableTimeStats :: Bool
ghcHeapSize :: Maybe Int
maxRelevantBinds :: Maybe Int
maxValidHoleFits :: Maybe Int
maxRefHoleFits :: Maybe Int
refLevelHoleFits :: Maybe Int
maxUncoveredPatterns :: Int
maxPmCheckModels :: Int
simplTickFactor :: Int
dmdUnboxWidth :: Int
specConstrThreshold :: Maybe Int
specConstrCount :: Maybe Int
specConstrRecursive :: Int
binBlobThreshold :: Maybe Word
liberateCaseThreshold :: Maybe Int
floatLamArgs :: Maybe Int
liftLamsRecArgs :: Maybe Int
liftLamsNonRecArgs :: Maybe Int
liftLamsKnown :: Bool
cmmProcAlignment :: Maybe Int
historySize :: Int
importPaths :: [String]
mainModuleNameIs :: ModuleName
mainFunIs :: Maybe String
reductionDepth :: IntWithInf
solverIterations :: IntWithInf
homeUnitId_ :: UnitId
homeUnitInstanceOf_ :: Maybe UnitId
homeUnitInstantiations_ :: [(ModuleName, Module)]
workingDirectory :: Maybe String
thisPackageName :: Maybe String
hiddenModules :: Set ModuleName
reexportedModules :: Set ModuleName
targetWays_ :: Ways
splitInfo :: Maybe (String, Int)
objectDir :: Maybe String
dylibInstallName :: Maybe String
hiDir :: Maybe String
hieDir :: Maybe String
stubDir :: Maybe String
dumpDir :: Maybe String
objectSuf_ :: String
hcSuf :: String
hiSuf_ :: String
hieSuf :: String
dynObjectSuf_ :: String
dynHiSuf_ :: String
outputFile_ :: Maybe String
dynOutputFile_ :: Maybe String
outputHi :: Maybe String
dynOutputHi :: Maybe String
dynLibLoader :: DynLibLoader
dynamicNow :: Bool
dumpPrefix :: String
dumpPrefixForce :: Maybe String
ldInputs :: [Option]
includePaths :: IncludeSpecs
libraryPaths :: [String]
frameworkPaths :: [String]
cmdlineFrameworks :: [String]
rtsOpts :: Maybe String
rtsOptsEnabled :: RtsOptsEnabled
rtsOptsSuggestions :: Bool
hpcDir :: String
pluginModNames :: [ModuleName]
pluginModNameOpts :: [(ModuleName, String)]
frontendPluginOpts :: [String]
externalPluginSpecs :: [ExternalPluginSpec]
depMakefile :: String
depIncludePkgDeps :: Bool
depIncludeCppDeps :: Bool
depExcludeMods :: [ModuleName]
depSuffixes :: [String]
packageDBFlags :: [PackageDBFlag]
ignorePackageFlags :: [IgnorePackageFlag]
packageFlags :: [PackageFlag]
pluginPackageFlags :: [PackageFlag]
trustFlags :: [TrustFlag]
packageEnv :: Maybe String
dumpFlags :: EnumSet DumpFlag
generalFlags :: EnumSet GeneralFlag
warningFlags :: EnumSet WarningFlag
fatalWarningFlags :: EnumSet WarningFlag
language :: Maybe Language
safeHaskell :: SafeHaskellMode
safeInfer :: Bool
safeInferred :: Bool
thOnLoc :: SrcSpan
newDerivOnLoc :: SrcSpan
deriveViaOnLoc :: SrcSpan
overlapInstLoc :: SrcSpan
incoherentOnLoc :: SrcSpan
pkgTrustOnLoc :: SrcSpan
warnSafeOnLoc :: SrcSpan
warnUnsafeOnLoc :: SrcSpan
trustworthyOnLoc :: SrcSpan
extensions :: [OnOff Extension]
extensionFlags :: EnumSet Extension
unfoldingOpts :: UnfoldingOpts
maxWorkerArgs :: Int
ghciHistSize :: Int
flushOut :: FlushOut
ghcVersionFile :: Maybe String
haddockOptions :: Maybe String
ghciScripts :: [String]
pprUserLength :: Int
pprCols :: Int
useUnicode :: Bool
useColor :: OverridingBool
canUseColor :: Bool
colScheme :: Scheme
profAuto :: ProfAuto
callerCcFilters :: [CallerCcFilter]
interactivePrint :: Maybe String
sseVersion :: Maybe SseVersion
bmiVersion :: Maybe BmiVersion
avx :: Bool
avx2 :: Bool
avx512cd :: Bool
avx512er :: Bool
avx512f :: Bool
avx512pf :: Bool
rtldInfo :: IORef (Maybe LinkerInfo)
rtccInfo :: IORef (Maybe CompilerInfo)
rtasmInfo :: IORef (Maybe CompilerInfo)
maxInlineAllocSize :: Int
maxInlineMemcpyInsns :: Int
maxInlineMemsetInsns :: Int
reverseErrors :: Bool
maxErrors :: Maybe Int
initialUnique :: Word
uniqueIncrement :: Int
cfgWeights :: Weights
..} BinHandle -> Name -> IO ()
nameio =
let
hpc :: Maybe String
hpc = if GeneralFlag -> DynFlags -> Bool
gopt GeneralFlag
Opt_Hpc DynFlags
dflags then String -> Maybe String
forall a. a -> Maybe a
Just String
hpcDir else Maybe String
forall a. Maybe a
Nothing
in (BinHandle -> Name -> IO ()) -> Maybe String -> IO Fingerprint
forall a.
Binary a =>
(BinHandle -> Name -> IO ()) -> a -> IO Fingerprint
computeFingerprint BinHandle -> Name -> IO ()
nameio Maybe String
hpc