ghc-lib-parser-9.2.1.20220109: The GHC API, decoupled from GHC versions
Safe HaskellNone
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