Given a possibly on-the-fly instantiated module, split it into
a Module that we definitely can find on-disk, as well as an
instantiation if we need to instantiate it on the fly. If the
instantiation is Nothing no on-the-fly renaming is needed.
Moduleghc-9.10.3GHC2021
GHC.Unit.Module
- 2 classes
- 10 values
- Packageghc-9.10.3
- Exports12
- LanguageGHC2021
- LicenceBSD-3-Clause
- SourceModule.hs
module GHC.Unit.Types
The ModuleName type
0 declarationsThe ModLocation type
0 declarationsmodule GHC.Unit.Module.Location
ModuleEnv
0 declarationsmodule GHC.Unit.Module.Env
Generalization
4 declarationsReturn the unit-id this unit is an instance of and the module instantiations (if any).
Remove instantiations of the given instantiated unit
Remove instantiations of the given module instantiated unit
The Module type
8 declarationsCreate a hole Module
Test if a Module is not instantiated
This gives a stable ordering, as opposed to the Ord instance which
gives an ordering based on the Uniques of the components, which may
not be stable from run to run of the compiler.
Get a string representation of a Module that's unique and stable across recompilations. eg. "$aeson_70dylHtv1FFGeai1IoxcQr$Data.Aeson.Types.Internal"
A Module is definite if it has no free holes.
Methods
extractModule :: t -> Module
Instances3ContainsModule
ContainsModule DsGblEnvDefined in ghc-9.10.3 · GHC.HsToCore.TypesContainsModule TcGblEnvDefined in ghc-9.10.3 · GHC.Tc.TypesContainsModule gbl => ContainsModule (Env gbl lcl)Defined in ghc-9.10.3 · GHC.Tc.Types
Test if a Module corresponds to a given InstalledModule, modulo instantiation.