ghc-8.8.2: The GHC API
Safe HaskellNone
LanguageHaskell2010

UniqDSet

Description

Specialised deterministic sets, for things with Uniques

Based on UniqDFMs (as you would expect). See Note [Deterministic UniqFM] in UniqDFM for explanation why we need it.

Basically, the things need to be in class Uniquable.

Synopsis

Unique set type

data UniqDSet a Source #

Instances

Instances details
Eq (UniqDSet a) # 
Instance details

Defined in UniqDSet

Methods

(==) :: UniqDSet a -> UniqDSet a -> Bool #

(/=) :: UniqDSet a -> UniqDSet a -> Bool #

Data a => Data (UniqDSet a) # 
Instance details

Defined in UniqDSet

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UniqDSet a -> c (UniqDSet a) Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c (UniqDSet a) Source #

toConstr :: UniqDSet a -> Constr Source #

dataTypeOf :: UniqDSet a -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c (UniqDSet a)) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c (UniqDSet a)) Source #

gmapT :: (forall b. Data b => b -> b) -> UniqDSet a -> UniqDSet a Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UniqDSet a -> r Source #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UniqDSet a -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> UniqDSet a -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> UniqDSet a -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> UniqDSet a -> m (UniqDSet a) Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UniqDSet a -> m (UniqDSet a) Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UniqDSet a -> m (UniqDSet a) Source #

Semigroup (UniqDSet a) # 
Instance details

Defined in UniqDSet

Monoid (UniqDSet a) # 
Instance details

Defined in UniqDSet

Outputable a => Outputable (UniqDSet a) # 
Instance details

Defined in UniqDSet

pprUniqDSet :: (a -> SDoc) -> UniqDSet a -> SDoc Source #

Manipulating these sets

foldUniqDSet :: (a -> b -> b) -> b -> UniqDSet a -> b Source #

mapUniqDSet :: Uniquable b => (a -> b) -> UniqDSet a -> UniqDSet b Source #