HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleghc-9.10.3GHC2021

GHC.Data.EnumSet

A tiny wrapper around IntSet for representing sets of Enum things.

  • 1 type
  • 7 values
  • Packageghc-9.10.3
  • Exports8
  • LanguageGHC2021
  • LicenceBSD-3-Clause
  • SourceEnumSet.hs
newtypenewtype EnumSet (a :: k)
#
Instances4Semigroup, Monoid, NFData, Binary
  • Semigroup (EnumSet a)Defined in ghc-9.10.3 · GHC.Data.EnumSet
  • Monoid (EnumSet a)Defined in ghc-9.10.3 · GHC.Data.EnumSet
  • NFData (EnumSet a)Defined in ghc-9.10.3 · GHC.Data.EnumSet
  • Binary (EnumSet a)Defined in ghc-9.10.3 · GHC.Data.EnumSet

    Represents the EnumSet as a bit set.

    Assumes that all elements are non-negative.

    This is only efficient for values that are sufficiently small, for example in the lower hundreds.