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.

[Skip to Readme]


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

Package maintainers

For package maintainers and hackage trustees


Versions [RSS],,,,,, 0.6.2
Change log CHANGELOG.md
Dependencies base (>=4.9 && <5), containers (>=0.5.3 && <0.7), deepseq (>=1.3), template-haskell (>=2.7 && <2.17) [details]
License BSD-3-Clause
Copyright © 2013−2015 Liyang HU
Author Liyang HU
Maintainer Fumiaki Kinoshita <fumiexcel@gmail.com>
Revised Revision 1 made by sjakobi at 2021-11-13T07:31:55Z
Category Data
Home page https://github.com/tsurucapital/enummapset-th
Source repo head: git clone https://github.com/tsurucapital/enummapset-th.git
Uploaded by FumiakiKinoshita at 2020-07-22T03:54:04Z
Reverse Dependencies 12 direct, 1 indirect [details]
Downloads 10196 total (18 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2020-07-22 [all 1 reports]

Readme for enummapset-th-0.6.2

[back to package description]