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.Data.EnumSet

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

  • 1 type
  • 7 values
newtypenewtype EnumSet (a :: k)
#
Instances4Semigroup, Monoid, NFData, Binary
  • Semigroup (EnumSet a)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Data.EnumSet
  • Monoid (EnumSet a)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Data.EnumSet
  • NFData (EnumSet a)Defined in ghc-lib-parser-9.14.1.20251220 · GHC.Data.EnumSet
  • Binary (EnumSet a)Defined in ghc-lib-parser-9.14.1.20251220 · 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.