ghc-9.2.6: The GHC API
Safe HaskellSafe-Inferred
LanguageHaskell2010

GHC.Types.Name.Cache

Description

The Name Cache

Synopsis

Documentation

initNameCache :: UniqSupply -> [Name] -> NameCache Source #

Return a function to atomically update the name cache.

data NameCache Source #

The NameCache makes sure that there is just one Unique assigned for each original name; i.e. (module-name, occ-name) pair and provides something of a lookup mechanism for those names.

Constructors

NameCache 

Fields

type OrigNameCache = ModuleEnv (OccEnv Name) Source #

Per-module cache of original OccNames given Names