ghc-7.10.0.20150316: The GHC API

Safe HaskellNone
LanguageHaskell2010

NameEnv

Contents

Synopsis

Var, Id and TyVar environments (maps)

type NameEnv a = UniqFM a Source

Manipulating these environments

mkNameEnv :: [(Name, a)] -> NameEnv a Source

extendNameEnv_C :: (a -> a -> a) -> NameEnv a -> Name -> a -> NameEnv a Source

extendNameEnv_Acc :: (a -> b -> b) -> (a -> b) -> NameEnv b -> Name -> a -> NameEnv b Source

extendNameEnvList_C :: (a -> a -> a) -> NameEnv a -> [(Name, a)] -> NameEnv a Source

foldNameEnv :: (a -> b -> b) -> b -> NameEnv a -> b Source

filterNameEnv :: (elt -> Bool) -> NameEnv elt -> NameEnv elt Source

anyNameEnv :: (elt -> Bool) -> NameEnv elt -> Bool Source

plusNameEnv_C :: (a -> a -> a) -> NameEnv a -> NameEnv a -> NameEnv a Source

alterNameEnv :: (Maybe a -> Maybe a) -> NameEnv a -> Name -> NameEnv a Source

mapNameEnv :: (elt1 -> elt2) -> NameEnv elt1 -> NameEnv elt2 Source

Dependency analysis

depAnal :: (node -> [Name]) -> (node -> [Name]) -> [node] -> [SCC node] Source