mappings: Types which represent functions k -> v

[ bsd3, data-structures, library, program ] [ Propose Tags ]

A typeclass and a number of implementations; please read README.md on github


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0.1.0, 0.0.2.0, 0.1.0.0, 0.2.0.0, 0.2.1.0, 0.2.2.0, 0.3.0.0
Change log CHANGELOG.md
Dependencies base (>=4.16 && <4.20), cond (>=0.5.1 && <0.6), containers (>=0.6.5 && <0.8), formatting (>=7.0.0 && <7.3), indexed-traversable (>=0.1.1 && <0.2), mappings, partialord (>=0.0.2 && <0.1) [details]
License BSD-3-Clause
Copyright 2023 James Cranch
Author James Cranch
Maintainer j.d.cranch@sheffield.ac.uk
Category Data structures
Home page https://github.com/jcranch/mapping#readme
Bug tracker https://github.com/jcranch/mapping/issues
Source repo head: git clone https://github.com/jcranch/mapping
Uploaded by jcranch at 2023-12-09T01:03:28Z
Distributions LTSHaskell:0.3.0.0, Stackage:0.3.0.0
Executables view
Downloads 118 total (23 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2023-12-09 [all 1 reports]

Readme for mappings-0.3.0.0

[back to package description]

Mappings

What's it do?

This package does two jobs:

  • It offers a general typeclass Mapping for types which represent functions k -> v (for fixed k, but arbitrary ordered v).

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

  • Three less trivial implementations are provided:

Why did I bother?

The aim is to use decision diagrams with nodes that are piecewise constant maps to store monomials for Grobner basis algorithms.