ghc-9.8.3: The GHC API
Safe HaskellNone
LanguageHaskell2010

GHC.Rename.Names

Synopsis

Documentation

rnImports :: [(LImportDecl GhcPs, SDoc)] -> RnM ([LImportDecl GhcRn], GlobalRdrEnv, ImportAvails, AnyHpcUsage) Source #

Process Import Decls. See rnImportDecl for a description of what the return types represent. Note: Do the non SOURCE ones first, so that we get a helpful warning for SOURCE ones that are unnecessary

gresFromAvails :: HscEnv -> Maybe ImportSpec -> [AvailInfo] -> [GlobalRdrElt] Source #

All the GlobalRdrElts associated with a collection of AvailInfos.

calculateAvails :: HomeUnit -> Set UnitId -> ModIface -> IsSafeImport -> IsBootInterface -> ImportedBy -> ImportAvails Source #

Calculate the ImportAvails induced by an import of a particular interface, but without imp_mods.

findChildren :: NameEnv [a] -> Name -> [a] Source #

renamePkgQual :: UnitEnv -> ModuleName -> Maybe FastString -> PkgQual Source #

Rename raw package imports

renameRawPkgQual :: UnitEnv -> ModuleName -> RawPkgQual -> PkgQual Source #

Rename raw package imports