hdirect-0.21.0: An IDL compiler for Haskell

Env

Documentation

type Env a b = FiniteMap a bSource

addToEnv :: Ord a => Env a b -> a -> b -> Env a bSource

addToEnv_C :: Ord a => (b -> b -> b) -> Env a b -> a -> b -> Env a bSource

replaceElt :: Ord a => Env a b -> a -> b -> Env a bSource

delFromEnv :: Ord a => Env a b -> a -> Env a bSource

addListToEnv :: Ord a => Env a b -> [(a, b)] -> Env a bSource

addListToEnv_C :: Ord a => (b -> b -> b) -> Env a b -> [(a, b)] -> Env a bSource

lookupEnv :: Ord a => Env a b -> a -> Maybe bSource

envToList :: Env a b -> [(a, b)]Source

mapEnv :: (a -> b -> c) -> Env a b -> Env a cSource

mapMaybeEnv :: Ord a => (a -> b -> Maybe c) -> Env a b -> Env a cSource

unionEnvs :: Ord a => [Env a b] -> Env a bSource