UniqFM map from Unit to a UnitVisibility.
Moduleghc-10.0.0.20260917GHC2024
GHC.Unit.External.Visibility
- 2 types
- Packageghc-10.0.0.20260917
- Exports2
- LanguageGHC2024
- LicenceBSD-3-Clause
- SourceVisibility.hs
UnitVisibility records the various aspects of visibility of a particular Unit.
Constructors
UnitVisibilityuv_expose_all :: Booluv_renamings :: [(ModuleName, ModuleName)]Any custom renamings that should bring extra ModuleNames into scope.
uv_package_name :: First FastStringThe package name associated with the Unit. This is used to implement legacy behavior where
-package foo-0.1implicitly hides any packages namedfoouv_requirements :: UniqMap ModuleName (Set InstantiatedModule)The signatures which are contributed to the requirements context from this unit ID.
uv_explicit :: Maybe PackageArgWhether or not this unit was explicitly brought into scope, as opposed to implicitly via the
exposedfields in the package database (when-hide-all-packagesis not passed.)
Instances3Semigroup, Monoid, Outputable
Semigroup UnitVisibilityDefined in ghc-10.0.0.20260917 · GHC.Unit.External.VisibilityMonoid UnitVisibilityDefined in ghc-10.0.0.20260917 · GHC.Unit.External.VisibilityOutputable UnitVisibilityDefined in ghc-10.0.0.20260917 · GHC.Unit.External.Visibility