ghc-9.12: The GHC API
Safe HaskellNone
LanguageGHC2021

GHC.Data.EnumSet

Description

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

Documentation

data EnumSet (a :: k) Source #

Instances

Instances details
NFData (EnumSet a) Source # 
Instance details

Defined in GHC.Data.EnumSet

Methods

rnf :: EnumSet a -> () Source #

Binary (EnumSet a) Source #

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.

Instance details

Defined in GHC.Data.EnumSet

Monoid (EnumSet a) Source # 
Instance details

Defined in GHC.Data.EnumSet

Methods

mempty :: EnumSet a #

mappend :: EnumSet a -> EnumSet a -> EnumSet a #

mconcat :: [EnumSet a] -> EnumSet a #

Semigroup (EnumSet a) Source # 
Instance details

Defined in GHC.Data.EnumSet

Methods

(<>) :: EnumSet a -> EnumSet a -> EnumSet a #

sconcat :: NonEmpty (EnumSet a) -> EnumSet a #

stimes :: Integral b => b -> EnumSet a -> EnumSet a #

member :: Enum a => a -> EnumSet a -> Bool Source #

insert :: Enum a => a -> EnumSet a -> EnumSet a Source #

delete :: Enum a => a -> EnumSet a -> EnumSet a Source #

toList :: Enum a => EnumSet a -> [a] Source #

fromList :: Enum a => [a] -> EnumSet a Source #

empty :: forall {k} (a :: k). EnumSet a Source #

difference :: forall {k} (a :: k). EnumSet a -> EnumSet a -> EnumSet a Source #