hpp-0.1.0.0: A Haskell pre-processor
Hpp.Env
Description
A name binding context, or environment.
Synopsis
type Env = [(String, Macro)] Source
A macro binding environment.
deleteKey :: Eq a => a -> [(a, b)] -> [(a, b)] Source
Delete an entry from an association list.
lookupKey :: Eq a => a -> [(a, b)] -> Maybe (b, [(a, b)]) Source
Looks up a value in an association list. If the key is found, the value is returned along with an updated association list with that key at the front.