GHC.Data.EnumSet

ghc-9.2.5: The GHC API

Safe Haskell | Safe-Inferred
Language | Haskell2010

GHC.Data.EnumSet

Description

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

# Documentation

data EnumSet a Source #

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 :: EnumSet a Source #

difference :: EnumSet a -> EnumSet a -> EnumSet a Source #