monoidal-containers: Containers with monoidal accumulation

[ bsd3, data, library ] [ Propose Tags ]

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)
Versions [faq] 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 (info)
Change log Changelog.md
Dependencies aeson (>=1.0 && <1.5), base (>=4.7 && <4.14), containers (>=0.5 && <0.7), deepseq (>=1.3 && <1.5), hashable (>=1.2 && <1.4), lens (>=4.4 && <5), newtype (==0.2.*), semialign (>=1 && <1.1), semigroups (>=0.18 && <0.20), these (>=0.7 && <0.9 || >=1 && <1.1), unordered-containers (==0.2.*) [details]
License BSD-3-Clause
Copyright (c) 2014 Ben Gamari
Author Ben Gamari
Maintainer ben@smart-cactus.org
Revised Revision 2 made by GeorgeWilson at Tue Oct 15 07:17:18 UTC 2019
Category Data
Home page http://github.com/bgamari/monoidal-containers
Source repo head: git clone git://github.com/bgamari/monoidal-containers
Uploaded by abrar at Sat Aug 24 19:41:12 UTC 2019
Distributions LTSHaskell:0.4.0.0, NixOS:0.6, Stackage:0.4.0.0
Downloads 6074 total (465 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index] [Quick Jump]

Flags

NameDescriptionDefaultType
split-these

Use split these/semialign packages

EnabledAutomatic

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

Downloads

Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees