BSD-3-Clause licensed by James Cranch
Maintained by [email protected]
This version can be pinned in stack with:mappings-0.4.0.0@sha256:0e5ee9bd85959485624ef1dc42bdddc280d9d4d0bf4f4a9857a75ded7ed7e3d4,2878

Mappings

This package offers a general typeclass Mapping for data structures which represent functions k -> v (possibly for fixed k, but arbitrary ordered v).

There are some fairly straightforward examples: constant mappings, and those which build up mappings where k is Either, or a pair, or Maybe, or Bool.

Three less trivial implementations are provided:

Changes

[0.4.0.0] - 2026-02-18

  • Constraint polymorphism
  • Rewrite of the Data.Mapping.Decision module

[0.3.1.0] - 2024-05-20

  • Support for GHC 9.10

[0.3.0.0] - 2023-12-06

  • Extra functionality for Data.Mapping.Piecewise

[0.2.2.0] - 2023-11-22

  • Uses a newer version of cond allowing many newtypes to be derived.

[0.1.0.0] - 2023-11-09

  • baseLength and decisionLength functions
  • rewritten the counting functions

[0.0.1.0] - 2023-11-05

Initial version