monoidal-containers: Containers with monoidal accumulation

[ bsd3, data, library ] [ Propose Tags ] [ Report a vulnerability ]

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, Semigroup a) => Monoid (MonoidalMap k a)

Flags

Automatic Flags
NameDescriptionDefault
split-these

Use split these/semialign packages

Enabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.1.0, 0.1.2.0, 0.1.2.1, 0.1.2.2, 0.1.2.3, 0.1.2.4, 0.1.2.5, 0.2.0.0, 0.3.0.0, 0.3.0.1, 0.3.0.2, 0.3.1.0, 0.4.0.0, 0.5.0.0, 0.5.0.1, 0.6, 0.6.0.1, 0.6.1.0, 0.6.2.0, 0.6.3.0, 0.6.4.0, 0.6.5.0, 0.6.6.0 (info)
Change log Changelog.md
Dependencies aeson (>=1.0 && <2.3), base (>=4.7 && <4.22), containers (>=0.5.9 && <0.8), deepseq (>=1.3 && <1.6), hashable (>=1.2 && <1.6), lens (>=4.4 && <5.4), newtype (>=0.2 && <0.3), semialign (>=1 && <1.4), these (>=0.7 && <0.9 || >=1 && <1.3), unordered-containers (>=0.2 && <0.3), witherable (>=0.4 && <0.6) [details]
Tested with ghc ==8.2 || ==8.4 || ==8.6 || ==8.8 || ==8.10 || ==9.0 || ==9.2 || ==9.4 || ==9.6 || ==9.10 || ==9.12
License BSD-3-Clause
Copyright (c) 2014 Ben Gamari
Author Ben Gamari
Maintainer ben@smart-cactus.org
Category Data
Home page http://github.com/bgamari/monoidal-containers
Source repo head: git clone https://github.com/bgamari/monoidal-containers
Uploaded by alexfmpe at 2025-04-05T16:36:11Z
Distributions LTSHaskell:0.6.6.0, NixOS:0.6.5.0, Stackage:0.6.6.0
Reverse Dependencies 15 direct, 8063 indirect [details]
Downloads 31062 total (11 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]