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

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Moduleghc-lib-parser-9.14.1.20251220GHC2021

GHC.Types.Unique.Set

  • 2 types
  • 53 values

Unique set type

3 declarations
newtypenewtype UniqSet a
#

Set of Uniquable values

Instances6Eq, Data, Semigroup, Monoid, NFData, Outputable
  • Eq (UniqSet a)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.Unique.Set
  • Data a => Data (UniqSet a)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.Unique.Set
  • Semigroup (UniqSet a)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.Unique.Set
  • Monoid (UniqSet a)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.Unique.Set
  • NFData a => NFData (UniqSet a)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.Unique.Set
  • Outputable a => Outputable (UniqSet a)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.Unique.Set

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
  • Eq UniqueSetDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.Unique.Set
  • Ord UniqueSetDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.Unique.Set
  • Show UniqueSetDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.Unique.Set
  • Semigroup UniqueSetDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.Unique.Set
  • Monoid UniqueSetDefined in ghc-lib-parser-9.14.1.20251220 · GHC.Types.Unique.Set