ghc-lib-9.0.1.20210207: The GHC API, decoupled from GHC versions
Safe HaskellNone
LanguageHaskell2010

GHC.Iface.Env

Synopsis

Documentation

externaliseName :: Module -> Name -> TcRnIf m n Name Source #

lookupIfaceTop :: OccName -> IfL Name Source #

Look up a top-level name from the current Iface module

lookupOrig :: Module -> OccName -> TcRnIf a b Name Source #

Look up the Name for a given Module and OccName. Consider alternatively using lookupIfaceTop if you're in the IfL monad and Module is simply that of the ModIface you are typechecking.

lookupOrigNameCache :: OrigNameCache -> Module -> OccName -> Maybe Name #

extendNameCache :: OrigNameCache -> Module -> OccName -> Name -> OrigNameCache #

extendIfaceIdEnv :: [Id] -> IfL a -> IfL a Source #

extendIfaceTyVarEnv :: [TyVar] -> IfL a -> IfL a Source #

tcIfaceLclId :: FastString -> IfL Id Source #

tcIfaceTyVar :: FastString -> IfL TyVar Source #

lookupIfaceVar :: IfaceBndr -> IfL (Maybe TyCoVar) Source #

lookupIfaceTyVar :: IfaceTvBndr -> IfL (Maybe TyVar) Source #

extendIfaceEnvs :: [TyCoVar] -> IfL a -> IfL a Source #

setNameModule :: Maybe Module -> Name -> TcRnIf m n Name Source #

Set the Module of a Name.

ifaceExportNames :: [IfaceExport] -> TcRnIf gbl lcl [AvailInfo] Source #

allocateGlobalBinder :: NameCache -> Module -> OccName -> SrcSpan -> (NameCache, Name) Source #

updNameCacheTc :: Module -> OccName -> (NameCache -> (NameCache, c)) -> TcRnIf a b c Source #

newtype NameCacheUpdater Source #

A function that atomically updates the name cache given a modifier function. The second result of the modifier function will be the result of the IO action.

Constructors

NCU 

Fields