ghc-8.2.1.20171108: The GHC API

Safe HaskellNone
LanguageHaskell2010

UniqDSet

Contents

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

Manipulating these sets

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