enumset

Sets of enumeration values represented by machine words

LTS Haskell 22.43:0.1
Stackage Nightly 2024-11-24:0.1
Latest on Hackage:0.1

See all snapshots enumset appears in

BSD-3-Clause licensed and maintained by Henning Thielemann
This version can be pinned in stack with:enumset-0.1@sha256:96131fb9a7fa8c6c81ba0ec49803306664541bf8395abcb4dc9936dc389d197a,1685

Module documentation for 0.1

Used by 4 packages in nightly-2024-10-02(full list with versions):

With this package you can create a type safe interface to flag sets. It is intended for interfacing to C libraries via FFI, where Word8, Word16, or Word32 types are commonly used to store bit vectors. E.g. the type EnumSet Word16 Ordering represents a flag set stored in a Word16 that supports the flags LT, EQ, GT.

This package is similar to the bitset package and the Data.Edison.Coll.EnumSet module in the edison package, however our implementation allows you to choose the embedding type and thus the maximum size of the set.

See also data-flags and Data.EnumSet in enummapset.