dependent-enummap

A generalisation of EnumMap to dependent types

Stackage Nightly 2026-03-24:0.2.0.0
Latest on Hackage:0.2.0.0

See all snapshots dependent-enummap appears in

BSD-3-Clause licensed by Tom Smeding, Mikolaj Konarski
Maintained by Tom Smeding
This version can be pinned in stack with:dependent-enummap-0.2.0.0@sha256:232a98c953e50637c4d324e12849113b3b7fb7b58aa7db7e7eaad7b68fa932f4,1589

Module documentation for 0.2.0.0

A generalisation of EnumMap to dependent key and value types. The key type needs to be an instance of class Enum1, a generalisation of the Enum class. Most of the API of EnumMap/IntMap is supported, usually by wrapping IntMap operations in coercions accompanied by some runtime type-consistency assertions.

Changes

Changelog

This package intends to follow the Package Versioning Policy (PVP).

0.2.0.0 March 2026

  • Simpler but more restrictive Enum1 class definition (one can always set type Enum1Info f = f, however, perhaps with a performance cost compared to the old definition).

0.1.0.0 May 2025

  • Initial release.