GHC.HsToCore.Usage

ghc-9.0.0.20200925: The GHC API

Safe Haskell | None
Language | Haskell2010

GHC.HsToCore.Usage

Contents

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

Synopsis

- mkUsageInfo :: HscEnv -> Module -> ImportedMods -> NameSet -> [FilePath] -> [(Module, Fingerprint)] -> [ModIface] -> IO [Usage]
- mkUsedNames :: TcGblEnv -> NameSet
- mkDependencies :: UnitId -> [Module] -> TcGblEnv -> IO Dependencies

# 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 first argument is additional dependencies from plugins