ghc-8.2.2: The GHC API

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

type UniqDSet a = UniqDFM a #

## Manipulating these sets

mkUniqDSet :: Uniquable a => [a] -> UniqDSet a #

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

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