HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Moduleghc-10.0.0.20260917GHC2024

GHC.Types.Unique.Set

  • 2 types
  • 60 values

Unique set type

3 declarations
newtypenewtype UniqSet a
#

Set of Uniquable values

Instances6Eq, Data, Semigroup, Monoid, NFData, Outputable

Manipulating these sets

valuelookupUniqSet :: Uniquable key => UniqSet key -> key -> Maybe key
#

What's the point you might ask? We might have changed an object without it's key changing. In which case this lookup makes sense.

newtypenewtype UniqueSet
#

Set of Unique values

Similar to 'UniqSet Unique' but with a more compact representation.

Constructors

Instances5Eq, Ord, Show, Semigroup, Monoid