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
Moduleghc-9.14.1GHC2021
GHC.Rename.Names
- 2 types
- 17 values
- Packageghc-9.14.1
- Exports19
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourceNames.hs
The import specification as written by the user, including
the list of explicitly imported names. Used in ModIface to
allow GHCi to reconstruct the top level environment on demand.
This is distinct from ImportSpec because we don't want to store the list of explicitly imported names along with each GRE
We don't want to store the entire GlobalRdrEnv for modules that are imported without explicit export lists, as these may grow to be very large. However, GlobalRdrEnvs which are the result of explicit import lists are typically quite small.
Why do we not store something like (Maybe (ImportListInterpretation, [IE GhcPs]) in such a case? Because we don't want to store source syntax including annotations in interface files.
Constructors
All the GlobalRdrElts associated with a collection of AvailInfos.
Calculate the ImportAvails induced by an import of a particular interface, but without imp_mods.
Rename raw package imports
Rename raw package imports