@hackage / hashmap

Persistent containers Map and Set based on hashing.

Version Deprecated package1.3.3

About

Metadata

  • Last updated , by ryanglscott
  • License BSD-3-Clause
  • Maintained by: Ryan Scott <ryan.gl.scott@gmail.com>

  • Lottery factor: 0

Links

Installation

This package has been deprecated in favour of

Tested Compilers

  1. 8.4.1
  2. 8.2.2
  3. 8.0.2
  4. 7.10.3

Package Flags

Use the -f option with cabal commands to enable flags

    oldcontainers (off by default)

    Use old version of containers where NFData instances are provided by deepseq.

Readme

An implementation of persistent Map and Set containers based on hashing. The implementation is build on top of Data.IntMap.IntMap and Data.IntSet.IntSet, with very similar API. It uses Hashable class from the hashable package for hashing.

This package can be used as a drop-in replacement for Data.Map and Data.Set modules.

The Map key value is an Data.IntMap.IntMap indexed by the hash value, containing either one (key, value) or a Data.Map.Map key value for all keys with the same hash value.

The Set elem is an Data.IntMap.IntMap indexed by the hash value, containing either one elem or Data.Set.Set elem for all elements with the same hash value.