HORIZON HASKELLDocslts/ghc-10.0.x04404a62026-10-19Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 04404a6 · 2026-10-19

Unique set type

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