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.Types.Name.Cache

The Name Cache

  • 2 types
  • 11 values
  • Packageghc-9.14.1
  • Exports13
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceCache.hs
valueinitNameCache :: Char -> [Name] -> IO NameCache
#

Deprecated. Use newNameCache or newNameCacheWith instead

This takes a tag for uniques to be generated and the list of knownKeyNames These must be initialized properly to ensure that names generated from this NameCache do not conflict with known key names.

Use newNameCache or newNameCacheWith instead

Update the name cache with the given function

Additionally, it ensures that the given Module and OccName are evaluated. If not, chaos can ensue: we read the name-cache then pull on mod (say) which does some stuff that modifies the name cache This did happen, with tycon_mod in GHC.IfaceToCore.tcIfaceAlt (DataAlt..)

OrigNameCache

4 declarations

Known-key names

2 declarations