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

Moduleghc-10.0.0.20260917GHC2024

GHC.Data.EnumSet

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

Synopsis
newtypenewtype EnumSet (a :: k)
#
Instances4Semigroup, Monoid, NFData, Binary
  • Semigroup (EnumSet a)Defined in ghc-10.0.0.20260917 · GHC.Data.EnumSet
  • Monoid (EnumSet a)Defined in ghc-10.0.0.20260917 · GHC.Data.EnumSet
  • NFData (EnumSet a)Defined in ghc-10.0.0.20260917 · GHC.Data.EnumSet
  • Binary (EnumSet a)Defined in ghc-10.0.0.20260917 · 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.