GHC.Data.EnumSet

ghc-lib-parser-9.10.1.20250103: The GHC API, decoupled from GHC versions

Safe Haskell | Ignore
Language | GHC2021

GHC.Data.EnumSet

Description

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

# Documentation

data EnumSet (a :: k) #

#### Instances

Instances details

NFData (EnumSet a) # |
Instance details Defined in GHC.Data.EnumSet Methods rnf :: EnumSet a -> () #
Monoid (EnumSet a) # |
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) # |
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 #
Binary (EnumSet a) # | 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 Methods put_ :: BinHandle -> EnumSet a -> IO () # put :: BinHandle -> EnumSet a -> IO (Bin (EnumSet a)) # get :: BinHandle -> IO (EnumSet a) #

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

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

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

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

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

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

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