enumset

Sets of enumeration values represented by machine words

Version on this page:0.0.4
LTS Haskell 22.13:0.1
Stackage Nightly 2024-03-14: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.0.4@sha256:b2d906ecc10e03bff0940bde4f81a60ac16ced5f215ed6c30f87781b7750ab6b,1659

Module documentation for 0.0.4

Used by 3 packages in nightly-2017-10-28(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.