HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleinsert-ordered-containers-0.2.6Haskell2010

Data.HashMap.Strict.InsOrd

InsOrdHashMap is like HashMap, but it folds and traverses in insertion order.

This module interface mimics Data.HashMap.Strict, with some additions.

  • 1 type
  • 49 values
datadata InsOrdHashMap k v
#

HashMap which tries its best to remember insertion order of elements.

Instances33NFData2, FoldableWithIndex, FunctorWithIndex, TraversableWithIndex, Functor, Foldable, …

Construction

2 declarations

Basic interface

11 declarations

Combine

4 declarations
valueunionWith
  1. :: (Eq k, Hashable k)
  2. => v -> v -> v
  3. -> InsOrdHashMap k v
  4. -> InsOrdHashMap k v
  5. -> InsOrdHashMap k v
#

The union of two maps. If a key occurs in both maps, the provided function (first argument) will be used to compute the result.

Ordered traversal will go thru keys in the first map first.

Transformations

5 declarations

Unordered

Difference and intersection

4 declarations

Folds

5 declarations

Unordered

Filter

4 declarations

Conversions

7 declarations

Lenses

2 declarations

Debugging

1 declaration