ghc-lib-parser-9.14.1.20251220: 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_ :: WriteBinHandle -> EnumSet a -> IO () # put :: WriteBinHandle -> EnumSet a -> IO (Bin (EnumSet a)) # get :: ReadBinHandle -> 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 #