enummapset-th: TH-generated EnumSet/EnumMap wrappers around IntSet/IntMap.

[ bsd3, data, library ] [ Propose Tags ]

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.

Versions [faq],,,,,
Dependencies base (>=4.5 && <5), containers (>=0.5.3 && <0.6), deepseq (>=1.3), template-haskell (>=2.7) [details]
License BSD-3-Clause
Copyright © 2013−2015 Liyang HU
Author Liyang HU
Maintainer enummapset-th@liyang.hu
Category Data
Home page https://github.com/tsurucapital/enummapset-th
Source repo head: git clone https://github.com/tsurucapital/enummapset-th.git
Uploaded by LiyangHu at Mon Aug 1 05:19:40 UTC 2016
Distributions Debian:, NixOS:
Downloads 7015 total (144 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2016-08-01 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees