HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Package1.3.3Data

hashmap

Persistent containers Map and Set based on hashing.

Modules

2 modules
  • Data.HashMap60Persistent Map based on hashing, which is defined as data Map k v = Data.IntMap.IntMap (Some k v)
  • Data.HashSet24Persistent Set based on hashing, which is defined as data Set e = Data.IntMap.IntMap (Some e)

Description

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.

Depends on

4 packages

Used by in this set · 0

Nothing in this set depends on it.