enumset: Sets of enumeration values represented by machine words

[ bsd3, data, foreign, library ] [ Propose Tags ]
Versions 0.0, 0.0.1, 0.0.2, 0.0.3, 0.0.4,
Dependencies base (==4.*), storable‑record (>=0.0.1 && <0.1) [details]
License BSD-3-Clause
Author Henning Thielemann <haskell@henning-thielemann.de>
Maintainer Henning Thielemann <haskell@henning-thielemann.de>
Category Data, Foreign
Source repo this: darcs get http://code.haskell.org/~thielema/enumset/ --tag 0.0.1
head: darcs get http://code.haskell.org/~thielema/enumset/
Uploaded by HenningThielemann at Tue Apr 12 11:29:01 UTC 2011
Distributions LTSHaskell:, NixOS:, Stackage:, openSUSE:
Downloads 2638 total (37 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI

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 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.




Maintainer's Corner

For package maintainers and hackage trustees