HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulemonoidal-containers-0.6.8.0Haskell2010

Data.IntMap.Monoidal.Strict

This module provides a Data.IntMap variant which uses the value's Monoid instance to accumulate conflicting entries when merging Maps.

While some functions mirroring those of Data.IntMap are provided here for convenience, more specialized needs will likely want to use either the Newtype or Wrapped instances to manipulate the underlying Map.

Contents
  1. Often-needed functions
Synopsis
newtypenewtype MonoidalIntMap a

An IntMap with monoidal accumulation

Instances40Functor, Foldable, Traversable, Eq1, Ord1, Show1, …

Often-needed functions

valueelems :: MonoidalIntMap a -> [a]

O(n). Return all elements of the map in the ascending order of their keys. Subject to list fusion.