enummapset-th: TH-generated EnumSet/EnumMap wrappers around IntSet/IntMap.
This package wraps IntSet
and IntMap
from containers
, and provides
fast sets and maps keyed on any data type with a well-behaved Enum
instance. Useful for derived Enum
s, newtype'd Int
s, or any data type
that can be packed into an Int
: just implement fromEnum
and toEnum
.
The boilerplate is generated using Template Haskell, so unlike
enummapset
it's easier to maintain and keep up-to-date with
containers
. On the downside, it's less portable.
Note that Data.EnumMap.Lazy and Data.EnumMap.Strict provide distinct
newtype wrappers, and their respective Functor
instances behave as
expected, unlike that of IntMap
which is alway lazy.
Downloads
- enummapset-th-0.6.0.2.tar.gz [browse] (Cabal source package)
- Package description (revised from the package)
Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.5.1.0, 0.6.0.0, 0.6.0.1, 0.6.0.2, 0.6.1.0, 0.6.1.1, 0.6.2 |
---|---|
Dependencies | base (>=4.5 && <5), containers (>=0.5 && <0.6), deepseq (>=1.3), template-haskell (>=2.7 && <2.11) [details] |
License | BSD-3-Clause |
Copyright | © 2013 Liyang HU |
Author | Liyang HU |
Maintainer | enummapset-th@liyang.hu |
Revised | Revision 1 made by HerbertValerioRiedel at 2016-02-07T18:37:49Z |
Category | Data |
Home page | https://github.com/liyang/enummapset-th |
Source repo | head: git clone http://github.com/liyang/enummapset-th |
Uploaded | by LiyangHu at 2015-01-21T08:11:55Z |
Distributions | |
Reverse Dependencies | 12 direct, 1 indirect [details] |
Downloads | 10368 total (8 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2015-01-21 [all 1 reports] |