Apache-2.0 licensed by Chris Martin
Maintained by Chris Martin, Julie Moronuki
This version can be pinned in stack with:invert-1.0.0.4@sha256:f896032baa23a8311ba12395cec740e03f011d3c974729fce1f016bc4e95b147,1624

Module documentation for 1.0.0.4

This library deals with computing a function’s inverse. This is, of course, not possible in general, so the applicability of this library comes with some caveats:

  • The function’s domain must be enumerable, and preferably rather small. We provide a few suggestions and utilities for how to enumerate the domain.

  • The function’s codomain must belong to the Eq class. An Ord or Hashable instance is also nice, to accommodate a data structure for efficient lookups.

  • The functions for inverting injections, surjections, and bijections require some care to use correctly, because the library does not verify these properties.

The main purpose of this library is to provide documentation and convenience. It does not contain a great quantity of code, so a user hesitant to incur a dependency on the package might well choose only to read and borrow its techniques.

Changes

1.0.0.4 (2023-06-26)

Raise language to GHC2021

1.0.0.3 (2023-01-11)

Packaging and documentation improvement

1.0.0.2 (2022-03-15)

  • Add support for base 4.16 (ghc 9.2)
  • Add support for hashable 1.4

1.0.0.1 (2021-06-02)

Minor documentation changes

1.0 (2021-02-09)

Initial release