{-# LANGUAGE RecordWildCards #-}
module FlagChecker (
fingerprintDynFlags
, fingerprintOptFlags
, fingerprintHpcFlags
) where
import GhcPrelude
import Binary
import DynFlags
import HscTypes
import Module
import Name
import Fingerprint
import BinFingerprint
import qualified EnumSet
import System.FilePath (normalise)
fingerprintDynFlags :: DynFlags -> Module
-> (BinHandle -> Name -> IO ())
-> IO Fingerprint
fingerprintDynFlags :: DynFlags
-> Module -> (BinHandle -> Name -> IO ()) -> IO Fingerprint
fingerprintDynFlags dflags :: DynFlags
dflags@DynFlags{Bool
Float
Int
FilePath
[Int]
[FilePath]
[(FilePath, FilePath)]
[(ModuleName, FilePath)]
[Option]
[StaticPlugin]
[LoadedPlugin]
[ModuleName]
[OnOff Extension]
[Way]
[PackageDBFlag]
[PackageFlag]
[TrustFlag]
[IgnorePackageFlag]
Maybe Int
Maybe FilePath
Maybe [(FilePath, [PackageConfig])]
Maybe [(ModuleName, Module)]
Maybe (FilePath, Int)
Maybe ComponentId
Maybe BmiVersion
Maybe SseVersion
Maybe Language
Word
IORef Bool
IORef Int
IORef (Maybe CompilerInfo)
IORef (Maybe LinkerInfo)
IORef (Map FilePath FilePath)
IORef (Set FilePath)
IORef (ModuleEnv Int)
IORef FilesToClean
Platform
PlatformMisc
IntegerLibrary
GhcNameVersion
FileSettings
EnumSet Extension
EnumSet GeneralFlag
EnumSet DumpFlag
EnumSet WarningFlag
Hooks
PlatformConstants
ToolSettings
OverridingBool
Scheme
InstalledUnitId
Module
PackageState
SrcSpan
IntWithInf
FlushErr
FlushOut
RtsOptsEnabled
DynLibLoader
GhcLink
GhcMode
HscTarget
LlvmConfig
ProfAuto
CfgWeights
SafeHaskellMode
IncludeSpecs
LogAction
cfgWeightInfo :: DynFlags -> CfgWeights
uniqueIncrement :: DynFlags -> Int
initialUnique :: DynFlags -> Int
maxErrors :: DynFlags -> Maybe Int
reverseErrors :: DynFlags -> Bool
maxInlineMemsetInsns :: DynFlags -> Int
maxInlineMemcpyInsns :: DynFlags -> Int
maxInlineAllocSize :: DynFlags -> Int
rtccInfo :: DynFlags -> IORef (Maybe CompilerInfo)
rtldInfo :: DynFlags -> IORef (Maybe LinkerInfo)
avx512pf :: DynFlags -> Bool
avx512f :: DynFlags -> Bool
avx512er :: DynFlags -> Bool
avx512cd :: DynFlags -> Bool
avx2 :: DynFlags -> Bool
avx :: DynFlags -> Bool
bmiVersion :: DynFlags -> Maybe BmiVersion
sseVersion :: DynFlags -> Maybe SseVersion
nextWrapperNum :: DynFlags -> IORef (ModuleEnv Int)
interactivePrint :: DynFlags -> Maybe FilePath
profAuto :: DynFlags -> ProfAuto
colScheme :: DynFlags -> Scheme
canUseColor :: DynFlags -> Bool
useColor :: DynFlags -> OverridingBool
ghciScripts :: DynFlags -> [FilePath]
haddockOptions :: DynFlags -> Maybe FilePath
ghcVersionFile :: DynFlags -> Maybe FilePath
flushErr :: DynFlags -> FlushErr
flushOut :: DynFlags -> FlushOut
log_action :: DynFlags -> LogAction
ghciHistSize :: DynFlags -> Int
maxWorkerArgs :: DynFlags -> Int
ufVeryAggressive :: DynFlags -> Bool
ufDearOp :: DynFlags -> Int
ufKeenessFactor :: DynFlags -> Float
ufDictDiscount :: DynFlags -> Int
ufFunAppDiscount :: DynFlags -> Int
ufUseThreshold :: DynFlags -> Int
ufCreationThreshold :: DynFlags -> Int
extensionFlags :: DynFlags -> EnumSet Extension
extensions :: DynFlags -> [OnOff Extension]
trustworthyOnLoc :: DynFlags -> SrcSpan
warnUnsafeOnLoc :: DynFlags -> SrcSpan
warnSafeOnLoc :: DynFlags -> SrcSpan
pkgTrustOnLoc :: DynFlags -> SrcSpan
incoherentOnLoc :: DynFlags -> SrcSpan
overlapInstLoc :: DynFlags -> SrcSpan
newDerivOnLoc :: DynFlags -> SrcSpan
thOnLoc :: DynFlags -> SrcSpan
safeInferred :: DynFlags -> Bool
safeInfer :: DynFlags -> Bool
safeHaskell :: DynFlags -> SafeHaskellMode
language :: DynFlags -> Maybe Language
fatalWarningFlags :: DynFlags -> EnumSet WarningFlag
warningFlags :: DynFlags -> EnumSet WarningFlag
generalFlags :: DynFlags -> EnumSet GeneralFlag
dumpFlags :: DynFlags -> EnumSet DumpFlag
generatedDumps :: DynFlags -> IORef (Set FilePath)
nextTempSuffix :: DynFlags -> IORef Int
dirsToClean :: DynFlags -> IORef (Map FilePath FilePath)
filesToClean :: DynFlags -> IORef FilesToClean
pkgState :: DynFlags -> PackageState
pkgDatabase :: DynFlags -> Maybe [(FilePath, [PackageConfig])]
packageEnv :: DynFlags -> Maybe FilePath
trustFlags :: DynFlags -> [TrustFlag]
pluginPackageFlags :: DynFlags -> [PackageFlag]
packageFlags :: DynFlags -> [PackageFlag]
ignorePackageFlags :: DynFlags -> [IgnorePackageFlag]
packageDBFlags :: DynFlags -> [PackageDBFlag]
depSuffixes :: DynFlags -> [FilePath]
depExcludeMods :: DynFlags -> [ModuleName]
depIncludeCppDeps :: DynFlags -> Bool
depIncludePkgDeps :: DynFlags -> Bool
depMakefile :: DynFlags -> FilePath
hooks :: DynFlags -> Hooks
staticPlugins :: DynFlags -> [StaticPlugin]
cachedPlugins :: DynFlags -> [LoadedPlugin]
frontendPluginOpts :: DynFlags -> [FilePath]
pluginModNameOpts :: DynFlags -> [(ModuleName, FilePath)]
pluginModNames :: DynFlags -> [ModuleName]
hpcDir :: DynFlags -> FilePath
rtsOptsSuggestions :: DynFlags -> Bool
rtsOptsEnabled :: DynFlags -> RtsOptsEnabled
rtsOpts :: DynFlags -> Maybe FilePath
cmdlineFrameworks :: DynFlags -> [FilePath]
frameworkPaths :: DynFlags -> [FilePath]
libraryPaths :: DynFlags -> [FilePath]
includePaths :: DynFlags -> IncludeSpecs
ldInputs :: DynFlags -> [Option]
dumpPrefixForce :: DynFlags -> Maybe FilePath
dumpPrefix :: DynFlags -> Maybe FilePath
dynLibLoader :: DynFlags -> DynLibLoader
outputHi :: DynFlags -> Maybe FilePath
dynOutputFile :: DynFlags -> Maybe FilePath
outputFile :: DynFlags -> Maybe FilePath
dynHiSuf :: DynFlags -> FilePath
dynObjectSuf :: DynFlags -> FilePath
canGenerateDynamicToo :: DynFlags -> IORef Bool
hieSuf :: DynFlags -> FilePath
hiSuf :: DynFlags -> FilePath
hcSuf :: DynFlags -> FilePath
objectSuf :: DynFlags -> FilePath
dumpDir :: DynFlags -> Maybe FilePath
stubDir :: DynFlags -> Maybe FilePath
hieDir :: DynFlags -> Maybe FilePath
hiDir :: DynFlags -> Maybe FilePath
dylibInstallName :: DynFlags -> Maybe FilePath
objectDir :: DynFlags -> Maybe FilePath
splitInfo :: DynFlags -> Maybe (FilePath, Int)
buildTag :: DynFlags -> FilePath
ways :: DynFlags -> [Way]
thisUnitIdInsts_ :: DynFlags -> Maybe [(ModuleName, Module)]
thisComponentId_ :: DynFlags -> Maybe ComponentId
thisInstalledUnitId :: DynFlags -> InstalledUnitId
solverIterations :: DynFlags -> IntWithInf
reductionDepth :: DynFlags -> IntWithInf
mainFunIs :: DynFlags -> Maybe FilePath
mainModIs :: DynFlags -> Module
importPaths :: DynFlags -> [FilePath]
historySize :: DynFlags -> Int
cmmProcAlignment :: DynFlags -> Maybe Int
liftLamsKnown :: DynFlags -> Bool
liftLamsNonRecArgs :: DynFlags -> Maybe Int
liftLamsRecArgs :: DynFlags -> Maybe Int
floatLamArgs :: DynFlags -> Maybe Int
liberateCaseThreshold :: DynFlags -> Maybe Int
binBlobThreshold :: DynFlags -> Word
specConstrRecursive :: DynFlags -> Int
specConstrCount :: DynFlags -> Maybe Int
specConstrThreshold :: DynFlags -> Maybe Int
simplTickFactor :: DynFlags -> Int
maxPmCheckModels :: DynFlags -> Int
maxUncoveredPatterns :: DynFlags -> Int
refLevelHoleFits :: DynFlags -> Maybe Int
maxRefHoleFits :: DynFlags -> Maybe Int
maxValidHoleFits :: DynFlags -> Maybe Int
maxRelevantBinds :: DynFlags -> Maybe Int
ghcHeapSize :: DynFlags -> Maybe Int
enableTimeStats :: DynFlags -> Bool
parMakeCount :: DynFlags -> Maybe Int
strictnessBefore :: DynFlags -> [Int]
inlineCheck :: DynFlags -> Maybe FilePath
ruleCheck :: DynFlags -> Maybe FilePath
maxSimplIterations :: DynFlags -> Int
simplPhases :: DynFlags -> Int
debugLevel :: DynFlags -> Int
optLevel :: DynFlags -> Int
verbosity :: DynFlags -> Int
llvmConfig :: DynFlags -> LlvmConfig
integerLibrary :: DynFlags -> IntegerLibrary
rawSettings :: DynFlags -> [(FilePath, FilePath)]
platformConstants :: DynFlags -> PlatformConstants
platformMisc :: DynFlags -> PlatformMisc
toolSettings :: DynFlags -> ToolSettings
fileSettings :: DynFlags -> FileSettings
ghcNameVersion :: DynFlags -> GhcNameVersion
hscTarget :: DynFlags -> HscTarget
ghcLink :: DynFlags -> GhcLink
ghcMode :: DynFlags -> GhcMode
targetPlatform :: DynFlags -> Platform
pprUserLength :: DynFlags -> Int
pprCols :: DynFlags -> Int
useUnicode :: DynFlags -> Bool
cfgWeightInfo :: CfgWeights
uniqueIncrement :: Int
initialUnique :: Int
maxErrors :: Maybe Int
reverseErrors :: Bool
maxInlineMemsetInsns :: Int
maxInlineMemcpyInsns :: Int
maxInlineAllocSize :: Int
rtccInfo :: IORef (Maybe CompilerInfo)
rtldInfo :: IORef (Maybe LinkerInfo)
avx512pf :: Bool
avx512f :: Bool
avx512er :: Bool
avx512cd :: Bool
avx2 :: Bool
avx :: Bool
bmiVersion :: Maybe BmiVersion
sseVersion :: Maybe SseVersion
nextWrapperNum :: IORef (ModuleEnv Int)
interactivePrint :: Maybe FilePath
profAuto :: ProfAuto
colScheme :: Scheme
canUseColor :: Bool
useColor :: OverridingBool
useUnicode :: Bool
pprCols :: Int
pprUserLength :: Int
ghciScripts :: [FilePath]
haddockOptions :: Maybe FilePath
ghcVersionFile :: Maybe FilePath
flushErr :: FlushErr
flushOut :: FlushOut
log_action :: LogAction
ghciHistSize :: Int
maxWorkerArgs :: Int
ufVeryAggressive :: Bool
ufDearOp :: Int
ufKeenessFactor :: Float
ufDictDiscount :: Int
ufFunAppDiscount :: Int
ufUseThreshold :: Int
ufCreationThreshold :: Int
extensionFlags :: EnumSet Extension
extensions :: [OnOff Extension]
trustworthyOnLoc :: SrcSpan
warnUnsafeOnLoc :: SrcSpan
warnSafeOnLoc :: SrcSpan
pkgTrustOnLoc :: SrcSpan
incoherentOnLoc :: SrcSpan
overlapInstLoc :: SrcSpan
newDerivOnLoc :: SrcSpan
thOnLoc :: SrcSpan
safeInferred :: Bool
safeInfer :: Bool
safeHaskell :: SafeHaskellMode
language :: Maybe Language
fatalWarningFlags :: EnumSet WarningFlag
warningFlags :: EnumSet WarningFlag
generalFlags :: EnumSet GeneralFlag
dumpFlags :: EnumSet DumpFlag
generatedDumps :: IORef (Set FilePath)
nextTempSuffix :: IORef Int
dirsToClean :: IORef (Map FilePath FilePath)
filesToClean :: IORef FilesToClean
pkgState :: PackageState
pkgDatabase :: Maybe [(FilePath, [PackageConfig])]
packageEnv :: Maybe FilePath
trustFlags :: [TrustFlag]
pluginPackageFlags :: [PackageFlag]
packageFlags :: [PackageFlag]
ignorePackageFlags :: [IgnorePackageFlag]
packageDBFlags :: [PackageDBFlag]
depSuffixes :: [FilePath]
depExcludeMods :: [ModuleName]
depIncludeCppDeps :: Bool
depIncludePkgDeps :: Bool
depMakefile :: FilePath
hooks :: Hooks
staticPlugins :: [StaticPlugin]
cachedPlugins :: [LoadedPlugin]
frontendPluginOpts :: [FilePath]
pluginModNameOpts :: [(ModuleName, FilePath)]
pluginModNames :: [ModuleName]
hpcDir :: FilePath
rtsOptsSuggestions :: Bool
rtsOptsEnabled :: RtsOptsEnabled
rtsOpts :: Maybe FilePath
cmdlineFrameworks :: [FilePath]
frameworkPaths :: [FilePath]
libraryPaths :: [FilePath]
includePaths :: IncludeSpecs
ldInputs :: [Option]
dumpPrefixForce :: Maybe FilePath
dumpPrefix :: Maybe FilePath
dynLibLoader :: DynLibLoader
outputHi :: Maybe FilePath
dynOutputFile :: Maybe FilePath
outputFile :: Maybe FilePath
dynHiSuf :: FilePath
dynObjectSuf :: FilePath
canGenerateDynamicToo :: IORef Bool
hieSuf :: FilePath
hiSuf :: FilePath
hcSuf :: FilePath
objectSuf :: FilePath
dumpDir :: Maybe FilePath
stubDir :: Maybe FilePath
hieDir :: Maybe FilePath
hiDir :: Maybe FilePath
dylibInstallName :: Maybe FilePath
objectDir :: Maybe FilePath
splitInfo :: Maybe (FilePath, Int)
buildTag :: FilePath
ways :: [Way]
thisUnitIdInsts_ :: Maybe [(ModuleName, Module)]
thisComponentId_ :: Maybe ComponentId
thisInstalledUnitId :: InstalledUnitId
solverIterations :: IntWithInf
reductionDepth :: IntWithInf
mainFunIs :: Maybe FilePath
mainModIs :: Module
importPaths :: [FilePath]
historySize :: Int
cmmProcAlignment :: Maybe Int
liftLamsKnown :: Bool
liftLamsNonRecArgs :: Maybe Int
liftLamsRecArgs :: Maybe Int
floatLamArgs :: Maybe Int
liberateCaseThreshold :: Maybe Int
binBlobThreshold :: Word
specConstrRecursive :: Int
specConstrCount :: Maybe Int
specConstrThreshold :: Maybe Int
simplTickFactor :: Int
maxPmCheckModels :: Int
maxUncoveredPatterns :: Int
refLevelHoleFits :: Maybe Int
maxRefHoleFits :: Maybe Int
maxValidHoleFits :: Maybe Int
maxRelevantBinds :: Maybe Int
ghcHeapSize :: Maybe Int
enableTimeStats :: Bool
parMakeCount :: Maybe Int
strictnessBefore :: [Int]
inlineCheck :: Maybe FilePath
ruleCheck :: Maybe FilePath
maxSimplIterations :: Int
simplPhases :: Int
debugLevel :: Int
optLevel :: Int
verbosity :: Int
llvmConfig :: LlvmConfig
integerLibrary :: IntegerLibrary
rawSettings :: [(FilePath, FilePath)]
platformConstants :: PlatformConstants
platformMisc :: PlatformMisc
toolSettings :: ToolSettings
targetPlatform :: Platform
fileSettings :: FileSettings
ghcNameVersion :: GhcNameVersion
hscTarget :: HscTarget
ghcLink :: GhcLink
ghcMode :: GhcMode
..} Module
this_mod BinHandle -> Name -> IO ()
nameio =
let mainis :: Maybe (Maybe FilePath)
mainis = if Module
mainModIs Module -> Module -> Bool
forall a. Eq a => a -> a -> Bool
== Module
this_mod then Maybe FilePath -> Maybe (Maybe FilePath)
forall a. a -> Maybe a
Just Maybe FilePath
mainFunIs else Maybe (Maybe FilePath)
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 (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)
cpp :: ([FilePath], [FilePath], ([FilePath], Fingerprint))
cpp = ( (FilePath -> FilePath) -> [FilePath] -> [FilePath]
forall a b. (a -> b) -> [a] -> [b]
map FilePath -> FilePath
normalise ([FilePath] -> [FilePath]) -> [FilePath] -> [FilePath]
forall a b. (a -> b) -> a -> b
$ IncludeSpecs -> [FilePath]
flattenIncludes IncludeSpecs
includePaths
, DynFlags -> [FilePath]
picPOpts DynFlags
dflags
, DynFlags -> ([FilePath], Fingerprint)
opt_P_signature DynFlags
dflags)
paths :: [FilePath]
paths = [ FilePath
hcSuf ]
prof :: Int
prof = if GeneralFlag -> DynFlags -> Bool
gopt GeneralFlag
Opt_SccProfilingOn 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]
flags :: ((Maybe (Maybe FilePath), IfaceTrustInfo, (Maybe Int, [Int]),
([FilePath], [FilePath], ([FilePath], Fingerprint))),
([FilePath], Int, [Bool], Int))
flags = ((Maybe (Maybe FilePath)
mainis, IfaceTrustInfo
safeHs, (Maybe Int, [Int])
lang, ([FilePath], [FilePath], ([FilePath], Fingerprint))
cpp), ([FilePath]
paths, Int
prof, [Bool]
ticky, Int
debugLevel))
in
(BinHandle -> Name -> IO ())
-> ((Maybe (Maybe FilePath), IfaceTrustInfo, (Maybe Int, [Int]),
([FilePath], [FilePath], ([FilePath], Fingerprint))),
([FilePath], Int, [Bool], Int))
-> IO Fingerprint
forall a.
Binary a =>
(BinHandle -> Name -> IO ()) -> a -> IO Fingerprint
computeFingerprint BinHandle -> Name -> IO ()
nameio ((Maybe (Maybe FilePath), IfaceTrustInfo, (Maybe Int, [Int]),
([FilePath], [FilePath], ([FilePath], Fingerprint))),
([FilePath], Int, [Bool], Int))
flags
fingerprintOptFlags :: DynFlags
-> (BinHandle -> Name -> IO ())
-> IO Fingerprint
fingerprintOptFlags :: DynFlags -> (BinHandle -> Name -> IO ()) -> IO Fingerprint
fingerprintOptFlags DynFlags{Bool
Float
Int
FilePath
[Int]
[FilePath]
[(FilePath, FilePath)]
[(ModuleName, FilePath)]
[Option]
[StaticPlugin]
[LoadedPlugin]
[ModuleName]
[OnOff Extension]
[Way]
[PackageDBFlag]
[PackageFlag]
[TrustFlag]
[IgnorePackageFlag]
Maybe Int
Maybe FilePath
Maybe [(FilePath, [PackageConfig])]
Maybe [(ModuleName, Module)]
Maybe (FilePath, Int)
Maybe ComponentId
Maybe BmiVersion
Maybe SseVersion
Maybe Language
Word
IORef Bool
IORef Int
IORef (Maybe CompilerInfo)
IORef (Maybe LinkerInfo)
IORef (Map FilePath FilePath)
IORef (Set FilePath)
IORef (ModuleEnv Int)
IORef FilesToClean
Platform
PlatformMisc
IntegerLibrary
GhcNameVersion
FileSettings
EnumSet Extension
EnumSet GeneralFlag
EnumSet DumpFlag
EnumSet WarningFlag
Hooks
PlatformConstants
ToolSettings
OverridingBool
Scheme
InstalledUnitId
Module
PackageState
SrcSpan
IntWithInf
FlushErr
FlushOut
RtsOptsEnabled
DynLibLoader
GhcLink
GhcMode
HscTarget
LlvmConfig
ProfAuto
CfgWeights
SafeHaskellMode
IncludeSpecs
LogAction
cfgWeightInfo :: CfgWeights
uniqueIncrement :: Int
initialUnique :: Int
maxErrors :: Maybe Int
reverseErrors :: Bool
maxInlineMemsetInsns :: Int
maxInlineMemcpyInsns :: Int
maxInlineAllocSize :: Int
rtccInfo :: IORef (Maybe CompilerInfo)
rtldInfo :: IORef (Maybe LinkerInfo)
avx512pf :: Bool
avx512f :: Bool
avx512er :: Bool
avx512cd :: Bool
avx2 :: Bool
avx :: Bool
bmiVersion :: Maybe BmiVersion
sseVersion :: Maybe SseVersion
nextWrapperNum :: IORef (ModuleEnv Int)
interactivePrint :: Maybe FilePath
profAuto :: ProfAuto
colScheme :: Scheme
canUseColor :: Bool
useColor :: OverridingBool
useUnicode :: Bool
pprCols :: Int
pprUserLength :: Int
ghciScripts :: [FilePath]
haddockOptions :: Maybe FilePath
ghcVersionFile :: Maybe FilePath
flushErr :: FlushErr
flushOut :: FlushOut
log_action :: LogAction
ghciHistSize :: Int
maxWorkerArgs :: Int
ufVeryAggressive :: Bool
ufDearOp :: Int
ufKeenessFactor :: Float
ufDictDiscount :: Int
ufFunAppDiscount :: Int
ufUseThreshold :: Int
ufCreationThreshold :: Int
extensionFlags :: EnumSet Extension
extensions :: [OnOff Extension]
trustworthyOnLoc :: SrcSpan
warnUnsafeOnLoc :: SrcSpan
warnSafeOnLoc :: SrcSpan
pkgTrustOnLoc :: SrcSpan
incoherentOnLoc :: SrcSpan
overlapInstLoc :: SrcSpan
newDerivOnLoc :: SrcSpan
thOnLoc :: SrcSpan
safeInferred :: Bool
safeInfer :: Bool
safeHaskell :: SafeHaskellMode
language :: Maybe Language
fatalWarningFlags :: EnumSet WarningFlag
warningFlags :: EnumSet WarningFlag
generalFlags :: EnumSet GeneralFlag
dumpFlags :: EnumSet DumpFlag
generatedDumps :: IORef (Set FilePath)
nextTempSuffix :: IORef Int
dirsToClean :: IORef (Map FilePath FilePath)
filesToClean :: IORef FilesToClean
pkgState :: PackageState
pkgDatabase :: Maybe [(FilePath, [PackageConfig])]
packageEnv :: Maybe FilePath
trustFlags :: [TrustFlag]
pluginPackageFlags :: [PackageFlag]
packageFlags :: [PackageFlag]
ignorePackageFlags :: [IgnorePackageFlag]
packageDBFlags :: [PackageDBFlag]
depSuffixes :: [FilePath]
depExcludeMods :: [ModuleName]
depIncludeCppDeps :: Bool
depIncludePkgDeps :: Bool
depMakefile :: FilePath
hooks :: Hooks
staticPlugins :: [StaticPlugin]
cachedPlugins :: [LoadedPlugin]
frontendPluginOpts :: [FilePath]
pluginModNameOpts :: [(ModuleName, FilePath)]
pluginModNames :: [ModuleName]
hpcDir :: FilePath
rtsOptsSuggestions :: Bool
rtsOptsEnabled :: RtsOptsEnabled
rtsOpts :: Maybe FilePath
cmdlineFrameworks :: [FilePath]
frameworkPaths :: [FilePath]
libraryPaths :: [FilePath]
includePaths :: IncludeSpecs
ldInputs :: [Option]
dumpPrefixForce :: Maybe FilePath
dumpPrefix :: Maybe FilePath
dynLibLoader :: DynLibLoader
outputHi :: Maybe FilePath
dynOutputFile :: Maybe FilePath
outputFile :: Maybe FilePath
dynHiSuf :: FilePath
dynObjectSuf :: FilePath
canGenerateDynamicToo :: IORef Bool
hieSuf :: FilePath
hiSuf :: FilePath
hcSuf :: FilePath
objectSuf :: FilePath
dumpDir :: Maybe FilePath
stubDir :: Maybe FilePath
hieDir :: Maybe FilePath
hiDir :: Maybe FilePath
dylibInstallName :: Maybe FilePath
objectDir :: Maybe FilePath
splitInfo :: Maybe (FilePath, Int)
buildTag :: FilePath
ways :: [Way]
thisUnitIdInsts_ :: Maybe [(ModuleName, Module)]
thisComponentId_ :: Maybe ComponentId
thisInstalledUnitId :: InstalledUnitId
solverIterations :: IntWithInf
reductionDepth :: IntWithInf
mainFunIs :: Maybe FilePath
mainModIs :: Module
importPaths :: [FilePath]
historySize :: Int
cmmProcAlignment :: Maybe Int
liftLamsKnown :: Bool
liftLamsNonRecArgs :: Maybe Int
liftLamsRecArgs :: Maybe Int
floatLamArgs :: Maybe Int
liberateCaseThreshold :: Maybe Int
binBlobThreshold :: Word
specConstrRecursive :: Int
specConstrCount :: Maybe Int
specConstrThreshold :: Maybe Int
simplTickFactor :: Int
maxPmCheckModels :: Int
maxUncoveredPatterns :: Int
refLevelHoleFits :: Maybe Int
maxRefHoleFits :: Maybe Int
maxValidHoleFits :: Maybe Int
maxRelevantBinds :: Maybe Int
ghcHeapSize :: Maybe Int
enableTimeStats :: Bool
parMakeCount :: Maybe Int
strictnessBefore :: [Int]
inlineCheck :: Maybe FilePath
ruleCheck :: Maybe FilePath
maxSimplIterations :: Int
simplPhases :: Int
debugLevel :: Int
optLevel :: Int
verbosity :: Int
llvmConfig :: LlvmConfig
integerLibrary :: IntegerLibrary
rawSettings :: [(FilePath, FilePath)]
platformConstants :: PlatformConstants
platformMisc :: PlatformMisc
toolSettings :: ToolSettings
targetPlatform :: Platform
fileSettings :: FileSettings
ghcNameVersion :: GhcNameVersion
hscTarget :: HscTarget
ghcLink :: GhcLink
ghcMode :: GhcMode
cfgWeightInfo :: DynFlags -> CfgWeights
uniqueIncrement :: DynFlags -> Int
initialUnique :: DynFlags -> Int
maxErrors :: DynFlags -> Maybe Int
reverseErrors :: DynFlags -> Bool
maxInlineMemsetInsns :: DynFlags -> Int
maxInlineMemcpyInsns :: DynFlags -> Int
maxInlineAllocSize :: DynFlags -> Int
rtccInfo :: DynFlags -> IORef (Maybe CompilerInfo)
rtldInfo :: DynFlags -> IORef (Maybe LinkerInfo)
avx512pf :: DynFlags -> Bool
avx512f :: DynFlags -> Bool
avx512er :: DynFlags -> Bool
avx512cd :: DynFlags -> Bool
avx2 :: DynFlags -> Bool
avx :: DynFlags -> Bool
bmiVersion :: DynFlags -> Maybe BmiVersion
sseVersion :: DynFlags -> Maybe SseVersion
nextWrapperNum :: DynFlags -> IORef (ModuleEnv Int)
interactivePrint :: DynFlags -> Maybe FilePath
profAuto :: DynFlags -> ProfAuto
colScheme :: DynFlags -> Scheme
canUseColor :: DynFlags -> Bool
useColor :: DynFlags -> OverridingBool
ghciScripts :: DynFlags -> [FilePath]
haddockOptions :: DynFlags -> Maybe FilePath
ghcVersionFile :: DynFlags -> Maybe FilePath
flushErr :: DynFlags -> FlushErr
flushOut :: DynFlags -> FlushOut
log_action :: DynFlags -> LogAction
ghciHistSize :: DynFlags -> Int
maxWorkerArgs :: DynFlags -> Int
ufVeryAggressive :: DynFlags -> Bool
ufDearOp :: DynFlags -> Int
ufKeenessFactor :: DynFlags -> Float
ufDictDiscount :: DynFlags -> Int
ufFunAppDiscount :: DynFlags -> Int
ufUseThreshold :: DynFlags -> Int
ufCreationThreshold :: DynFlags -> Int
extensionFlags :: DynFlags -> EnumSet Extension
extensions :: DynFlags -> [OnOff Extension]
trustworthyOnLoc :: DynFlags -> SrcSpan
warnUnsafeOnLoc :: DynFlags -> SrcSpan
warnSafeOnLoc :: DynFlags -> SrcSpan
pkgTrustOnLoc :: DynFlags -> SrcSpan
incoherentOnLoc :: DynFlags -> SrcSpan
overlapInstLoc :: DynFlags -> SrcSpan
newDerivOnLoc :: DynFlags -> SrcSpan
thOnLoc :: DynFlags -> SrcSpan
safeInferred :: DynFlags -> Bool
safeInfer :: DynFlags -> Bool
safeHaskell :: DynFlags -> SafeHaskellMode
language :: DynFlags -> Maybe Language
fatalWarningFlags :: DynFlags -> EnumSet WarningFlag
warningFlags :: DynFlags -> EnumSet WarningFlag
generalFlags :: DynFlags -> EnumSet GeneralFlag
dumpFlags :: DynFlags -> EnumSet DumpFlag
generatedDumps :: DynFlags -> IORef (Set FilePath)
nextTempSuffix :: DynFlags -> IORef Int
dirsToClean :: DynFlags -> IORef (Map FilePath FilePath)
filesToClean :: DynFlags -> IORef FilesToClean
pkgState :: DynFlags -> PackageState
pkgDatabase :: DynFlags -> Maybe [(FilePath, [PackageConfig])]
packageEnv :: DynFlags -> Maybe FilePath
trustFlags :: DynFlags -> [TrustFlag]
pluginPackageFlags :: DynFlags -> [PackageFlag]
packageFlags :: DynFlags -> [PackageFlag]
ignorePackageFlags :: DynFlags -> [IgnorePackageFlag]
packageDBFlags :: DynFlags -> [PackageDBFlag]
depSuffixes :: DynFlags -> [FilePath]
depExcludeMods :: DynFlags -> [ModuleName]
depIncludeCppDeps :: DynFlags -> Bool
depIncludePkgDeps :: DynFlags -> Bool
depMakefile :: DynFlags -> FilePath
hooks :: DynFlags -> Hooks
staticPlugins :: DynFlags -> [StaticPlugin]
cachedPlugins :: DynFlags -> [LoadedPlugin]
frontendPluginOpts :: DynFlags -> [FilePath]
pluginModNameOpts :: DynFlags -> [(ModuleName, FilePath)]
pluginModNames :: DynFlags -> [ModuleName]
hpcDir :: DynFlags -> FilePath
rtsOptsSuggestions :: DynFlags -> Bool
rtsOptsEnabled :: DynFlags -> RtsOptsEnabled
rtsOpts :: DynFlags -> Maybe FilePath
cmdlineFrameworks :: DynFlags -> [FilePath]
frameworkPaths :: DynFlags -> [FilePath]
libraryPaths :: DynFlags -> [FilePath]
includePaths :: DynFlags -> IncludeSpecs
ldInputs :: DynFlags -> [Option]
dumpPrefixForce :: DynFlags -> Maybe FilePath
dumpPrefix :: DynFlags -> Maybe FilePath
dynLibLoader :: DynFlags -> DynLibLoader
outputHi :: DynFlags -> Maybe FilePath
dynOutputFile :: DynFlags -> Maybe FilePath
outputFile :: DynFlags -> Maybe FilePath
dynHiSuf :: DynFlags -> FilePath
dynObjectSuf :: DynFlags -> FilePath
canGenerateDynamicToo :: DynFlags -> IORef Bool
hieSuf :: DynFlags -> FilePath
hiSuf :: DynFlags -> FilePath
hcSuf :: DynFlags -> FilePath
objectSuf :: DynFlags -> FilePath
dumpDir :: DynFlags -> Maybe FilePath
stubDir :: DynFlags -> Maybe FilePath
hieDir :: DynFlags -> Maybe FilePath
hiDir :: DynFlags -> Maybe FilePath
dylibInstallName :: DynFlags -> Maybe FilePath
objectDir :: DynFlags -> Maybe FilePath
splitInfo :: DynFlags -> Maybe (FilePath, Int)
buildTag :: DynFlags -> FilePath
ways :: DynFlags -> [Way]
thisUnitIdInsts_ :: DynFlags -> Maybe [(ModuleName, Module)]
thisComponentId_ :: DynFlags -> Maybe ComponentId
thisInstalledUnitId :: DynFlags -> InstalledUnitId
solverIterations :: DynFlags -> IntWithInf
reductionDepth :: DynFlags -> IntWithInf
mainFunIs :: DynFlags -> Maybe FilePath
mainModIs :: DynFlags -> Module
importPaths :: DynFlags -> [FilePath]
historySize :: DynFlags -> Int
cmmProcAlignment :: DynFlags -> Maybe Int
liftLamsKnown :: DynFlags -> Bool
liftLamsNonRecArgs :: DynFlags -> Maybe Int
liftLamsRecArgs :: DynFlags -> Maybe Int
floatLamArgs :: DynFlags -> Maybe Int
liberateCaseThreshold :: DynFlags -> Maybe Int
binBlobThreshold :: DynFlags -> Word
specConstrRecursive :: DynFlags -> Int
specConstrCount :: DynFlags -> Maybe Int
specConstrThreshold :: DynFlags -> Maybe Int
simplTickFactor :: DynFlags -> Int
maxPmCheckModels :: DynFlags -> Int
maxUncoveredPatterns :: DynFlags -> Int
refLevelHoleFits :: DynFlags -> Maybe Int
maxRefHoleFits :: DynFlags -> Maybe Int
maxValidHoleFits :: DynFlags -> Maybe Int
maxRelevantBinds :: DynFlags -> Maybe Int
ghcHeapSize :: DynFlags -> Maybe Int
enableTimeStats :: DynFlags -> Bool
parMakeCount :: DynFlags -> Maybe Int
strictnessBefore :: DynFlags -> [Int]
inlineCheck :: DynFlags -> Maybe FilePath
ruleCheck :: DynFlags -> Maybe FilePath
maxSimplIterations :: DynFlags -> Int
simplPhases :: DynFlags -> Int
debugLevel :: DynFlags -> Int
optLevel :: DynFlags -> Int
verbosity :: DynFlags -> Int
llvmConfig :: DynFlags -> LlvmConfig
integerLibrary :: DynFlags -> IntegerLibrary
rawSettings :: DynFlags -> [(FilePath, FilePath)]
platformConstants :: DynFlags -> PlatformConstants
platformMisc :: DynFlags -> PlatformMisc
toolSettings :: DynFlags -> ToolSettings
fileSettings :: DynFlags -> FileSettings
ghcNameVersion :: DynFlags -> GhcNameVersion
hscTarget :: DynFlags -> HscTarget
ghcLink :: DynFlags -> GhcLink
ghcMode :: DynFlags -> GhcMode
targetPlatform :: DynFlags -> Platform
pprUserLength :: DynFlags -> Int
pprCols :: DynFlags -> Int
useUnicode :: DynFlags -> Bool
..} 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
Float
Int
FilePath
[Int]
[FilePath]
[(FilePath, FilePath)]
[(ModuleName, FilePath)]
[Option]
[StaticPlugin]
[LoadedPlugin]
[ModuleName]
[OnOff Extension]
[Way]
[PackageDBFlag]
[PackageFlag]
[TrustFlag]
[IgnorePackageFlag]
Maybe Int
Maybe FilePath
Maybe [(FilePath, [PackageConfig])]
Maybe [(ModuleName, Module)]
Maybe (FilePath, Int)
Maybe ComponentId
Maybe BmiVersion
Maybe SseVersion
Maybe Language
Word
IORef Bool
IORef Int
IORef (Maybe CompilerInfo)
IORef (Maybe LinkerInfo)
IORef (Map FilePath FilePath)
IORef (Set FilePath)
IORef (ModuleEnv Int)
IORef FilesToClean
Platform
PlatformMisc
IntegerLibrary
GhcNameVersion
FileSettings
EnumSet Extension
EnumSet GeneralFlag
EnumSet DumpFlag
EnumSet WarningFlag
Hooks
PlatformConstants
ToolSettings
OverridingBool
Scheme
InstalledUnitId
Module
PackageState
SrcSpan
IntWithInf
FlushErr
FlushOut
RtsOptsEnabled
DynLibLoader
GhcLink
GhcMode
HscTarget
LlvmConfig
ProfAuto
CfgWeights
SafeHaskellMode
IncludeSpecs
LogAction
cfgWeightInfo :: CfgWeights
uniqueIncrement :: Int
initialUnique :: Int
maxErrors :: Maybe Int
reverseErrors :: Bool
maxInlineMemsetInsns :: Int
maxInlineMemcpyInsns :: Int
maxInlineAllocSize :: Int
rtccInfo :: IORef (Maybe CompilerInfo)
rtldInfo :: IORef (Maybe LinkerInfo)
avx512pf :: Bool
avx512f :: Bool
avx512er :: Bool
avx512cd :: Bool
avx2 :: Bool
avx :: Bool
bmiVersion :: Maybe BmiVersion
sseVersion :: Maybe SseVersion
nextWrapperNum :: IORef (ModuleEnv Int)
interactivePrint :: Maybe FilePath
profAuto :: ProfAuto
colScheme :: Scheme
canUseColor :: Bool
useColor :: OverridingBool
useUnicode :: Bool
pprCols :: Int
pprUserLength :: Int
ghciScripts :: [FilePath]
haddockOptions :: Maybe FilePath
ghcVersionFile :: Maybe FilePath
flushErr :: FlushErr
flushOut :: FlushOut
log_action :: LogAction
ghciHistSize :: Int
maxWorkerArgs :: Int
ufVeryAggressive :: Bool
ufDearOp :: Int
ufKeenessFactor :: Float
ufDictDiscount :: Int
ufFunAppDiscount :: Int
ufUseThreshold :: Int
ufCreationThreshold :: Int
extensionFlags :: EnumSet Extension
extensions :: [OnOff Extension]
trustworthyOnLoc :: SrcSpan
warnUnsafeOnLoc :: SrcSpan
warnSafeOnLoc :: SrcSpan
pkgTrustOnLoc :: SrcSpan
incoherentOnLoc :: SrcSpan
overlapInstLoc :: SrcSpan
newDerivOnLoc :: SrcSpan
thOnLoc :: SrcSpan
safeInferred :: Bool
safeInfer :: Bool
safeHaskell :: SafeHaskellMode
language :: Maybe Language
fatalWarningFlags :: EnumSet WarningFlag
warningFlags :: EnumSet WarningFlag
generalFlags :: EnumSet GeneralFlag
dumpFlags :: EnumSet DumpFlag
generatedDumps :: IORef (Set FilePath)
nextTempSuffix :: IORef Int
dirsToClean :: IORef (Map FilePath FilePath)
filesToClean :: IORef FilesToClean
pkgState :: PackageState
pkgDatabase :: Maybe [(FilePath, [PackageConfig])]
packageEnv :: Maybe FilePath
trustFlags :: [TrustFlag]
pluginPackageFlags :: [PackageFlag]
packageFlags :: [PackageFlag]
ignorePackageFlags :: [IgnorePackageFlag]
packageDBFlags :: [PackageDBFlag]
depSuffixes :: [FilePath]
depExcludeMods :: [ModuleName]
depIncludeCppDeps :: Bool
depIncludePkgDeps :: Bool
depMakefile :: FilePath
hooks :: Hooks
staticPlugins :: [StaticPlugin]
cachedPlugins :: [LoadedPlugin]
frontendPluginOpts :: [FilePath]
pluginModNameOpts :: [(ModuleName, FilePath)]
pluginModNames :: [ModuleName]
hpcDir :: FilePath
rtsOptsSuggestions :: Bool
rtsOptsEnabled :: RtsOptsEnabled
rtsOpts :: Maybe FilePath
cmdlineFrameworks :: [FilePath]
frameworkPaths :: [FilePath]
libraryPaths :: [FilePath]
includePaths :: IncludeSpecs
ldInputs :: [Option]
dumpPrefixForce :: Maybe FilePath
dumpPrefix :: Maybe FilePath
dynLibLoader :: DynLibLoader
outputHi :: Maybe FilePath
dynOutputFile :: Maybe FilePath
outputFile :: Maybe FilePath
dynHiSuf :: FilePath
dynObjectSuf :: FilePath
canGenerateDynamicToo :: IORef Bool
hieSuf :: FilePath
hiSuf :: FilePath
hcSuf :: FilePath
objectSuf :: FilePath
dumpDir :: Maybe FilePath
stubDir :: Maybe FilePath
hieDir :: Maybe FilePath
hiDir :: Maybe FilePath
dylibInstallName :: Maybe FilePath
objectDir :: Maybe FilePath
splitInfo :: Maybe (FilePath, Int)
buildTag :: FilePath
ways :: [Way]
thisUnitIdInsts_ :: Maybe [(ModuleName, Module)]
thisComponentId_ :: Maybe ComponentId
thisInstalledUnitId :: InstalledUnitId
solverIterations :: IntWithInf
reductionDepth :: IntWithInf
mainFunIs :: Maybe FilePath
mainModIs :: Module
importPaths :: [FilePath]
historySize :: Int
cmmProcAlignment :: Maybe Int
liftLamsKnown :: Bool
liftLamsNonRecArgs :: Maybe Int
liftLamsRecArgs :: Maybe Int
floatLamArgs :: Maybe Int
liberateCaseThreshold :: Maybe Int
binBlobThreshold :: Word
specConstrRecursive :: Int
specConstrCount :: Maybe Int
specConstrThreshold :: Maybe Int
simplTickFactor :: Int
maxPmCheckModels :: Int
maxUncoveredPatterns :: Int
refLevelHoleFits :: Maybe Int
maxRefHoleFits :: Maybe Int
maxValidHoleFits :: Maybe Int
maxRelevantBinds :: Maybe Int
ghcHeapSize :: Maybe Int
enableTimeStats :: Bool
parMakeCount :: Maybe Int
strictnessBefore :: [Int]
inlineCheck :: Maybe FilePath
ruleCheck :: Maybe FilePath
maxSimplIterations :: Int
simplPhases :: Int
debugLevel :: Int
optLevel :: Int
verbosity :: Int
llvmConfig :: LlvmConfig
integerLibrary :: IntegerLibrary
rawSettings :: [(FilePath, FilePath)]
platformConstants :: PlatformConstants
platformMisc :: PlatformMisc
toolSettings :: ToolSettings
targetPlatform :: Platform
fileSettings :: FileSettings
ghcNameVersion :: GhcNameVersion
hscTarget :: HscTarget
ghcLink :: GhcLink
ghcMode :: GhcMode
cfgWeightInfo :: DynFlags -> CfgWeights
uniqueIncrement :: DynFlags -> Int
initialUnique :: DynFlags -> Int
maxErrors :: DynFlags -> Maybe Int
reverseErrors :: DynFlags -> Bool
maxInlineMemsetInsns :: DynFlags -> Int
maxInlineMemcpyInsns :: DynFlags -> Int
maxInlineAllocSize :: DynFlags -> Int
rtccInfo :: DynFlags -> IORef (Maybe CompilerInfo)
rtldInfo :: DynFlags -> IORef (Maybe LinkerInfo)
avx512pf :: DynFlags -> Bool
avx512f :: DynFlags -> Bool
avx512er :: DynFlags -> Bool
avx512cd :: DynFlags -> Bool
avx2 :: DynFlags -> Bool
avx :: DynFlags -> Bool
bmiVersion :: DynFlags -> Maybe BmiVersion
sseVersion :: DynFlags -> Maybe SseVersion
nextWrapperNum :: DynFlags -> IORef (ModuleEnv Int)
interactivePrint :: DynFlags -> Maybe FilePath
profAuto :: DynFlags -> ProfAuto
colScheme :: DynFlags -> Scheme
canUseColor :: DynFlags -> Bool
useColor :: DynFlags -> OverridingBool
ghciScripts :: DynFlags -> [FilePath]
haddockOptions :: DynFlags -> Maybe FilePath
ghcVersionFile :: DynFlags -> Maybe FilePath
flushErr :: DynFlags -> FlushErr
flushOut :: DynFlags -> FlushOut
log_action :: DynFlags -> LogAction
ghciHistSize :: DynFlags -> Int
maxWorkerArgs :: DynFlags -> Int
ufVeryAggressive :: DynFlags -> Bool
ufDearOp :: DynFlags -> Int
ufKeenessFactor :: DynFlags -> Float
ufDictDiscount :: DynFlags -> Int
ufFunAppDiscount :: DynFlags -> Int
ufUseThreshold :: DynFlags -> Int
ufCreationThreshold :: DynFlags -> Int
extensionFlags :: DynFlags -> EnumSet Extension
extensions :: DynFlags -> [OnOff Extension]
trustworthyOnLoc :: DynFlags -> SrcSpan
warnUnsafeOnLoc :: DynFlags -> SrcSpan
warnSafeOnLoc :: DynFlags -> SrcSpan
pkgTrustOnLoc :: DynFlags -> SrcSpan
incoherentOnLoc :: DynFlags -> SrcSpan
overlapInstLoc :: DynFlags -> SrcSpan
newDerivOnLoc :: DynFlags -> SrcSpan
thOnLoc :: DynFlags -> SrcSpan
safeInferred :: DynFlags -> Bool
safeInfer :: DynFlags -> Bool
safeHaskell :: DynFlags -> SafeHaskellMode
language :: DynFlags -> Maybe Language
fatalWarningFlags :: DynFlags -> EnumSet WarningFlag
warningFlags :: DynFlags -> EnumSet WarningFlag
generalFlags :: DynFlags -> EnumSet GeneralFlag
dumpFlags :: DynFlags -> EnumSet DumpFlag
generatedDumps :: DynFlags -> IORef (Set FilePath)
nextTempSuffix :: DynFlags -> IORef Int
dirsToClean :: DynFlags -> IORef (Map FilePath FilePath)
filesToClean :: DynFlags -> IORef FilesToClean
pkgState :: DynFlags -> PackageState
pkgDatabase :: DynFlags -> Maybe [(FilePath, [PackageConfig])]
packageEnv :: DynFlags -> Maybe FilePath
trustFlags :: DynFlags -> [TrustFlag]
pluginPackageFlags :: DynFlags -> [PackageFlag]
packageFlags :: DynFlags -> [PackageFlag]
ignorePackageFlags :: DynFlags -> [IgnorePackageFlag]
packageDBFlags :: DynFlags -> [PackageDBFlag]
depSuffixes :: DynFlags -> [FilePath]
depExcludeMods :: DynFlags -> [ModuleName]
depIncludeCppDeps :: DynFlags -> Bool
depIncludePkgDeps :: DynFlags -> Bool
depMakefile :: DynFlags -> FilePath
hooks :: DynFlags -> Hooks
staticPlugins :: DynFlags -> [StaticPlugin]
cachedPlugins :: DynFlags -> [LoadedPlugin]
frontendPluginOpts :: DynFlags -> [FilePath]
pluginModNameOpts :: DynFlags -> [(ModuleName, FilePath)]
pluginModNames :: DynFlags -> [ModuleName]
hpcDir :: DynFlags -> FilePath
rtsOptsSuggestions :: DynFlags -> Bool
rtsOptsEnabled :: DynFlags -> RtsOptsEnabled
rtsOpts :: DynFlags -> Maybe FilePath
cmdlineFrameworks :: DynFlags -> [FilePath]
frameworkPaths :: DynFlags -> [FilePath]
libraryPaths :: DynFlags -> [FilePath]
includePaths :: DynFlags -> IncludeSpecs
ldInputs :: DynFlags -> [Option]
dumpPrefixForce :: DynFlags -> Maybe FilePath
dumpPrefix :: DynFlags -> Maybe FilePath
dynLibLoader :: DynFlags -> DynLibLoader
outputHi :: DynFlags -> Maybe FilePath
dynOutputFile :: DynFlags -> Maybe FilePath
outputFile :: DynFlags -> Maybe FilePath
dynHiSuf :: DynFlags -> FilePath
dynObjectSuf :: DynFlags -> FilePath
canGenerateDynamicToo :: DynFlags -> IORef Bool
hieSuf :: DynFlags -> FilePath
hiSuf :: DynFlags -> FilePath
hcSuf :: DynFlags -> FilePath
objectSuf :: DynFlags -> FilePath
dumpDir :: DynFlags -> Maybe FilePath
stubDir :: DynFlags -> Maybe FilePath
hieDir :: DynFlags -> Maybe FilePath
hiDir :: DynFlags -> Maybe FilePath
dylibInstallName :: DynFlags -> Maybe FilePath
objectDir :: DynFlags -> Maybe FilePath
splitInfo :: DynFlags -> Maybe (FilePath, Int)
buildTag :: DynFlags -> FilePath
ways :: DynFlags -> [Way]
thisUnitIdInsts_ :: DynFlags -> Maybe [(ModuleName, Module)]
thisComponentId_ :: DynFlags -> Maybe ComponentId
thisInstalledUnitId :: DynFlags -> InstalledUnitId
solverIterations :: DynFlags -> IntWithInf
reductionDepth :: DynFlags -> IntWithInf
mainFunIs :: DynFlags -> Maybe FilePath
mainModIs :: DynFlags -> Module
importPaths :: DynFlags -> [FilePath]
historySize :: DynFlags -> Int
cmmProcAlignment :: DynFlags -> Maybe Int
liftLamsKnown :: DynFlags -> Bool
liftLamsNonRecArgs :: DynFlags -> Maybe Int
liftLamsRecArgs :: DynFlags -> Maybe Int
floatLamArgs :: DynFlags -> Maybe Int
liberateCaseThreshold :: DynFlags -> Maybe Int
binBlobThreshold :: DynFlags -> Word
specConstrRecursive :: DynFlags -> Int
specConstrCount :: DynFlags -> Maybe Int
specConstrThreshold :: DynFlags -> Maybe Int
simplTickFactor :: DynFlags -> Int
maxPmCheckModels :: DynFlags -> Int
maxUncoveredPatterns :: DynFlags -> Int
refLevelHoleFits :: DynFlags -> Maybe Int
maxRefHoleFits :: DynFlags -> Maybe Int
maxValidHoleFits :: DynFlags -> Maybe Int
maxRelevantBinds :: DynFlags -> Maybe Int
ghcHeapSize :: DynFlags -> Maybe Int
enableTimeStats :: DynFlags -> Bool
parMakeCount :: DynFlags -> Maybe Int
strictnessBefore :: DynFlags -> [Int]
inlineCheck :: DynFlags -> Maybe FilePath
ruleCheck :: DynFlags -> Maybe FilePath
maxSimplIterations :: DynFlags -> Int
simplPhases :: DynFlags -> Int
debugLevel :: DynFlags -> Int
optLevel :: DynFlags -> Int
verbosity :: DynFlags -> Int
llvmConfig :: DynFlags -> LlvmConfig
integerLibrary :: DynFlags -> IntegerLibrary
rawSettings :: DynFlags -> [(FilePath, FilePath)]
platformConstants :: DynFlags -> PlatformConstants
platformMisc :: DynFlags -> PlatformMisc
toolSettings :: DynFlags -> ToolSettings
fileSettings :: DynFlags -> FileSettings
ghcNameVersion :: DynFlags -> GhcNameVersion
hscTarget :: DynFlags -> HscTarget
ghcLink :: DynFlags -> GhcLink
ghcMode :: DynFlags -> GhcMode
targetPlatform :: DynFlags -> Platform
pprUserLength :: DynFlags -> Int
pprCols :: DynFlags -> Int
useUnicode :: DynFlags -> Bool
..} BinHandle -> Name -> IO ()
nameio =
let
hpc :: Maybe FilePath
hpc = if GeneralFlag -> DynFlags -> Bool
gopt GeneralFlag
Opt_Hpc DynFlags
dflags then FilePath -> Maybe FilePath
forall a. a -> Maybe a
Just FilePath
hpcDir else Maybe FilePath
forall a. Maybe a
Nothing
in (BinHandle -> Name -> IO ()) -> Maybe FilePath -> IO Fingerprint
forall a.
Binary a =>
(BinHandle -> Name -> IO ()) -> a -> IO Fingerprint
computeFingerprint BinHandle -> Name -> IO ()
nameio Maybe FilePath
hpc