map-classes

A set of classes and instances for working with key/value mappings.

https://github.com/clintonmead/map-classes

Latest on Hackage:0.1.0.0

This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.

BSD-3-Clause licensed by Clinton Mead
Maintained by [email protected]

Basically a broad extension to the IArray interface for all sorts of key/value maps.

Arrays, maps etc can all use these classes so datatypes can be swapped in and out of algorithms.

The classes have plenty of functions, but also many default implementations, so making instances for your datatypes should be relatively easy.

Of course, if you give specialised defintions you might get better performance for some operations.

Currently only deals with pure structures but mutable structures are next on the todo list.