ghc-7.0.3: The GHC API

UniqSet

Contents

- Unique set type
  - Manipulating these sets

Synopsis

- type UniqSet a = UniqFM a
- emptyUniqSet :: UniqSet a
- unitUniqSet :: Uniquable a => a -> UniqSet a
- mkUniqSet :: Uniquable a => [a] -> UniqSet a
- addOneToUniqSet :: Uniquable a => UniqSet a -> a -> UniqSet a
- addOneToUniqSet_C :: Uniquable a => (a -> a -> a) -> UniqSet a -> a -> UniqSet a
- addListToUniqSet :: Uniquable a => UniqSet a -> [a] -> UniqSet a
- delOneFromUniqSet :: Uniquable a => UniqSet a -> a -> UniqSet a
- delOneFromUniqSet_Directly :: Uniquable a => UniqSet a -> Unique -> UniqSet a
- delListFromUniqSet :: Uniquable a => UniqSet a -> [a] -> UniqSet a
- unionUniqSets :: UniqSet a -> UniqSet a -> UniqSet a
- unionManyUniqSets :: [UniqSet a] -> UniqSet a
- minusUniqSet :: UniqSet a -> UniqSet a -> UniqSet a
- intersectUniqSets :: UniqSet a -> UniqSet a -> UniqSet a
- foldUniqSet :: (a -> b -> b) -> b -> UniqSet a -> b
- mapUniqSet :: (a -> b) -> UniqSet a -> UniqSet b
- elementOfUniqSet :: Uniquable a => a -> UniqSet a -> Bool
- elemUniqSet_Directly :: Unique -> UniqSet a -> Bool
- filterUniqSet :: (a -> Bool) -> UniqSet a -> UniqSet a
- sizeUniqSet :: UniqSet a -> Int
- isEmptyUniqSet :: UniqSet a -> Bool
- lookupUniqSet :: Uniquable a => UniqSet a -> a -> Maybe a
- uniqSetToList :: UniqSet a -> [a]

# Unique set type

type UniqSet a = UniqFM aSource

## Manipulating these sets

emptyUniqSet :: UniqSet aSource

unitUniqSet :: Uniquable a => a -> UniqSet aSource

mkUniqSet :: Uniquable a => [a] -> UniqSet aSource

addOneToUniqSet :: Uniquable a => UniqSet a -> a -> UniqSet aSource

addOneToUniqSet_C :: Uniquable a => (a -> a -> a) -> UniqSet a -> a -> UniqSet aSource

addListToUniqSet :: Uniquable a => UniqSet a -> [a] -> UniqSet aSource

delOneFromUniqSet :: Uniquable a => UniqSet a -> a -> UniqSet aSource

delOneFromUniqSet_Directly :: Uniquable a => UniqSet a -> Unique -> UniqSet aSource

delListFromUniqSet :: Uniquable a => UniqSet a -> [a] -> UniqSet aSource

unionUniqSets :: UniqSet a -> UniqSet a -> UniqSet aSource

unionManyUniqSets :: [UniqSet a] -> UniqSet aSource

minusUniqSet :: UniqSet a -> UniqSet a -> UniqSet aSource

intersectUniqSets :: UniqSet a -> UniqSet a -> UniqSet aSource

foldUniqSet :: (a -> b -> b) -> b -> UniqSet a -> bSource

mapUniqSet :: (a -> b) -> UniqSet a -> UniqSet bSource

elementOfUniqSet :: Uniquable a => a -> UniqSet a -> Bool Source

elemUniqSet_Directly :: Unique -> UniqSet a -> Bool Source

filterUniqSet :: (a -> Bool) -> UniqSet a -> UniqSet aSource

sizeUniqSet :: UniqSet a -> Int Source

isEmptyUniqSet :: UniqSet a -> Bool Source

lookupUniqSet :: Uniquable a => UniqSet a -> a -> Maybe aSource

uniqSetToList :: UniqSet a -> [a]Source