Safe Haskell | None |
---|---|
Language | Haskell2010 |
Data.MonoidMap
Description
This module contains a newtype wrapper around Map
that has a
correct Group
instance compared to the one for
MonoidalMap
, in that it has a unique neutral element.
This comes with different constraints on the parameters (check the instances
for Semigroup
and Monoid
of the corresponding data structures if you're
interested).
Synopsis
- newtype MonoidMap k v = MonoidMap {
- unMonoidMap :: MonoidalMap k v
- monoidMap :: (Ord k, Eq v, Monoid v) => MonoidalMap k v -> MonoidMap k v
Documentation
newtype MonoidMap k v Source #
Newtype wrapper around Data.Map.Monoidal.MonoidalMap
Constructors
MonoidMap | |
Fields
|