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.


Change logNone available
Dependenciesbase (>=4.5 && <5), containers (==0.5.*), deepseq (>=1.3), template-haskell (>=2.7) [details]
Copyright© 2013 Liyang HU
AuthorLiyang HU
Home page
Source repositoryhead: git clone
UploadedWed Jan 21 08:11:55 UTC 2015 by LiyangHu
Downloads2843 total (49 in last 30 days)
0 []
StatusDocs available [build log]
Last success reported on 2015-01-21 [all 1 reports]




Maintainers' corner

For package maintainers and hackage trustees