ghc-lib-0.20201101: The GHC API, decoupled from GHC versions
Safe HaskellNone
LanguageHaskell2010

GHC.HsToCore.Usage

Synopsis

Dependency/fingerprinting code (used by GHC.Iface.Make)

mkUsageInfo :: HscEnv -> Module -> ImportedMods -> NameSet -> [FilePath] -> [(Module, Fingerprint)] -> [ModIface] -> IO [Usage] Source #

mkUsedNames :: TcGblEnv -> NameSet Source #

mkDependencies :: UnitId -> [Module] -> TcGblEnv -> IO Dependencies Source #

Extract information from the rename and typecheck phases to produce a dependencies information for the module being compiled.

The second argument is additional dependencies from plugins