The enumset package

[ Tags: bsd3, data, foreign, library ] [ Propose Tags ]

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.


Versions 0.0, 0.0.1, 0.0.2, 0.0.3, 0.0.4
Dependencies base (==4.*), data-accessor (>=0.2.1 && <0.3), storable-record (>=0.0.1 && <0.1) [details]
License BSD3
Author Henning Thielemann <>
Maintainer Henning Thielemann <>
Category Data, Foreign
Source repository head: darcs get
Uploaded Sat May 14 16:54:15 UTC 2011 by HenningThielemann
Distributions LTSHaskell:0.0.4, NixOS:0.0.4, Stackage:0.0.4, Tumbleweed:0.0.4
Downloads 1875 total (16 in the last 30 days)
Rating 0.0 (0 ratings) [clear rating]
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees