ghc-8.4.1: The GHC API

Safe HaskellNone
LanguageHaskell2010

NameCache

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