The enummapset-th package
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 |
|---|---|
| Dependencies | base (≥4.5 & <5), containers (0.5.*), deepseq (≥1.3), template-haskell (≥2.7) |
| License | BSD3 |
| Copyright | © 2013 Liyang HU |
| Author | Liyang HU |
| Maintainer | enummapset-th@liyang.hu |
| Category | Data |
| Home page | https://github.com/liyang/enummapset-th |
| Source repository | git clone http://github.com/liyang/enummapset-th |
| Upload date | Wed Jan 30 14:48:21 UTC 2013 |
| Uploaded by | LiyangHu |
| Built on | ghc-7.6 |
Modules
Downloads
- enummapset-th-0.6.0.0.tar.gz (Cabal source package)
- package description (included in the package)