HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Moduleghc-9.14.1GHC2021

GHC.Core.UsageEnv

  • 2 types
  • 12 values
  • Packageghc-9.14.1
  • Exports14
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceUsageEnv.hs
valuelookupUE :: NamedThing n => UsageEnv -> n -> Usage
#

|lookupUE x env| returns the multiplicity assigned to |x| in |env|, if |x| is not bound in |env|, then returns |Zero| or |Bottom|.

valuesingleUsageUE :: Id -> UsageEnv
#

Record a single usage of an Id, i.e. {n: 1} Exception: We do not record external names (both GlobalIds and top-level LocalIds) because they're not relevant to linearity checking.