@hackage enummaps0.6.2.1.7

Enum wrappers for IntMap and IntSet

This package provides wrappers for IntMap and IntSet that allow one to use any type with an Enum instance as a key.

Similarities with enummapset-th:

  • Map functions are polymorphic, to match those in Data.Map and Data.Set

Similarities with enummapset:

  • Doesn't use template haskell

Differences from both:

  • unions works on any (representational) Foldable rather than on just lists

  • All functions in Data.Set and Data.Map.* have an equivalent in Data.EnumSet or Data.EnumMap.*