Containers with monoidal accumulation

Version on this page:
LTS Haskell 11.1:
Stackage Nightly 2018-03-18:
Latest on Hackage:

See all snapshots monoidal-containers appears in

BSD3 licensed by Ben Gamari
Maintained by

Module documentation for

Containers with merging via monoidal accumulation. The Monoid instances provided by the containers and unordered-containers packages merge structures in a left-biased manner instead of using the underlying monoidal structure of the value.

This package wraps the types provided by these packages, but provides Monoid instances implemented in terms of the value type's mappend. For instance, the Monoid Map instance looks like,

instance (Ord k, Monoid a) => Monoid (MonoidalMap k a)
comments powered byDisqus