The enummapset-th package

[Tags:bsd3, library]

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 Enums, newtype'd Ints, 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.

Properties

Versions 0.5.1.0, 0.6.0.0, 0.6.0.1, 0.6.0.2, 0.6.1.0
Dependencies base (>=4.5 && <5), containers (>=0.5.3 && <0.6), deepseq (>=1.3), template-haskell (>=2.7 && <2.11) [details]
License BSD3
Copyright © 2013 Liyang HU
Author Liyang HU
Maintainer enummapset-th@liyang.hu
Stability Unknown
Category Data
Home page https://github.com/liyang/enummapset-th
Source repository head: git clone http://github.com/liyang/enummapset-th
Uploaded Wed Oct 28 00:31:32 UTC 2015 by LiyangHu
Updated Sun Feb 7 18:38:38 UTC 2016 by HerbertValerioRiedel to revision 1
Distributions NixOS:0.6.1.0
Downloads 3068 total (16 in the last 30 days)
Votes
0 []
Status Docs available [build log]
Last success reported on 2015-10-30 [all 1 reports]

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees