HORIZON HASKELLDocslts/ghc-10.0.xaa25b892026-10-10Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · aa25b89 · 2026-10-10

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.