ghc-8.0.2: The GHC API

Safe Haskell | None
Language | Haskell2010

FastStringEnv

Contents

- FastString environments (maps)
  - Manipulating these environments

Synopsis

- type FastStringEnv a = UniqFM a
- mkFsEnv :: [(FastString, a)] -> FastStringEnv a
- emptyFsEnv :: FastStringEnv a
- unitFsEnv :: FastString -> a -> FastStringEnv a
- fsEnvElts :: FastStringEnv a -> [a]
- fsEnvUniqueElts :: FastStringEnv a -> [(Unique, a)]
- extendFsEnv_C :: (a -> a -> a) -> FastStringEnv a -> FastString -> a -> FastStringEnv a
- extendFsEnv_Acc :: (a -> b -> b) -> (a -> b) -> FastStringEnv b -> FastString -> a -> FastStringEnv b
- extendFsEnv :: FastStringEnv a -> FastString -> a -> FastStringEnv a
- extendFsEnvList :: FastStringEnv a -> [(FastString, a)] -> FastStringEnv a
- extendFsEnvList_C :: (a -> a -> a) -> FastStringEnv a -> [(FastString, a)] -> FastStringEnv a
- foldFsEnv :: (a -> b -> b) -> b -> FastStringEnv a -> b
- filterFsEnv :: (elt -> Bool) -> FastStringEnv elt -> FastStringEnv elt
- plusFsEnv :: FastStringEnv a -> FastStringEnv a -> FastStringEnv a
- plusFsEnv_C :: (a -> a -> a) -> FastStringEnv a -> FastStringEnv a -> FastStringEnv a
- alterFsEnv :: (Maybe a -> Maybe a) -> FastStringEnv a -> FastString -> FastStringEnv a
- lookupFsEnv :: FastStringEnv a -> FastString -> Maybe a
- lookupFsEnv_NF :: FastStringEnv a -> FastString -> a
- delFromFsEnv :: FastStringEnv a -> FastString -> FastStringEnv a
- delListFromFsEnv :: FastStringEnv a -> [FastString] -> FastStringEnv a
- elemFsEnv :: FastString -> FastStringEnv a -> Bool
- mapFsEnv :: (elt1 -> elt2) -> FastStringEnv elt1 -> FastStringEnv elt2

# FastString environments (maps)

type FastStringEnv a = UniqFM a Source #

## Manipulating these environments

mkFsEnv :: [(FastString, a)] -> FastStringEnv a Source #

emptyFsEnv :: FastStringEnv a Source #

unitFsEnv :: FastString -> a -> FastStringEnv a Source #

fsEnvElts :: FastStringEnv a -> [a] Source #

fsEnvUniqueElts :: FastStringEnv a -> [(Unique, a)] Source #

extendFsEnv_C :: (a -> a -> a) -> FastStringEnv a -> FastString -> a -> FastStringEnv a Source #

extendFsEnv_Acc :: (a -> b -> b) -> (a -> b) -> FastStringEnv b -> FastString -> a -> FastStringEnv b Source #

extendFsEnv :: FastStringEnv a -> FastString -> a -> FastStringEnv a Source #

extendFsEnvList :: FastStringEnv a -> [(FastString, a)] -> FastStringEnv a Source #

extendFsEnvList_C :: (a -> a -> a) -> FastStringEnv a -> [(FastString, a)] -> FastStringEnv a Source #

foldFsEnv :: (a -> b -> b) -> b -> FastStringEnv a -> b Source #

filterFsEnv :: (elt -> Bool) -> FastStringEnv elt -> FastStringEnv elt Source #

plusFsEnv :: FastStringEnv a -> FastStringEnv a -> FastStringEnv a Source #

plusFsEnv_C :: (a -> a -> a) -> FastStringEnv a -> FastStringEnv a -> FastStringEnv a Source #

alterFsEnv :: (Maybe a -> Maybe a) -> FastStringEnv a -> FastString -> FastStringEnv a Source #

lookupFsEnv :: FastStringEnv a -> FastString -> Maybe a Source #

lookupFsEnv_NF :: FastStringEnv a -> FastString -> a Source #

delFromFsEnv :: FastStringEnv a -> FastString -> FastStringEnv a Source #

delListFromFsEnv :: FastStringEnv a -> [FastString] -> FastStringEnv a Source #

elemFsEnv :: FastString -> FastStringEnv a -> Bool Source #

mapFsEnv :: (elt1 -> elt2) -> FastStringEnv elt1 -> FastStringEnv elt2 Source #