HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Unique set type

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