The monoidal-containers package

[Tags:bsd3, library]

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)


Dependencies base (>=4.5 && <4.11), containers (==0.5.*), deepseq (>=1.3 && <1.5), hashable (==1.2.*), lens (>=4.4 && <5), newtype (==0.2.*), unordered-containers (==0.2.*) [details]
License BSD3
Copyright (c) 2014 Ben Gamari
Author Ben Gamari
Category Data
Home page
Source repository head: git clone git://
Uploaded Tue Aug 1 13:42:08 UTC 2017 by BenGamari
Distributions LTSHaskell:, NixOS:, Stackage:, Tumbleweed:
Downloads 1322 total (68 in the last 30 days)
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees