Records the modules directly imported by a module for extracting e.g. usage information, and also to give better error message
Moduleghc-9.10.3GHC2021
GHC.Unit.Module.Imported
- 3 types
- 1 value
- Packageghc-9.10.3
- Exports4
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourceImported.hs
If a module was "imported" by the user, we associate it with more detailed usage information ImportedModsVal; a module imported by the system only gets used for usage information.
Constructors
Constructors
ImportedModsValimv_name :: ModuleNameThe name the module is imported with
imv_span :: SrcSpanthe source span of the whole import
imv_is_safe :: IsSafeImportwhether this is a safe import
imv_is_hiding :: Boolwhether this is an "hiding" import
imv_all_exports :: !GlobalRdrEnvall the things the module could provide.
NB. BangPattern here: otherwise this leaks. (#15111)
imv_qualified :: Boolwhether this is a qualified import