Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- newtype AppendMap k v = AppendMap {
- unAppendMap :: Map k v
Documentation
newtype AppendMap k v Source #
Map wrapper with Semigroup
and Monoid
instances that delegate to the
keys. It satisfies the following property:
lookup k (m1 <> m2) === lookup k m1 <> lookup k m2 where lookup key = Map.lookup key . unAppendMap
AppendMap | |
|
Instances
(Eq k, Eq v) => Eq (AppendMap k v) Source # | |
(Ord k, Ord v) => Ord (AppendMap k v) Source # | |
Defined in Data.Map.Append.Strict compare :: AppendMap k v -> AppendMap k v -> Ordering # (<) :: AppendMap k v -> AppendMap k v -> Bool # (<=) :: AppendMap k v -> AppendMap k v -> Bool # (>) :: AppendMap k v -> AppendMap k v -> Bool # (>=) :: AppendMap k v -> AppendMap k v -> Bool # | |
(Show k, Show v) => Show (AppendMap k v) Source # | |
(Ord k, Semigroup v) => Semigroup (AppendMap k v) Source # | |
(Ord k, Semigroup v) => Monoid (AppendMap k v) Source # | |