Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
A StrMap
is sort of like a HashMap
, but sorts the keys on a Text
representation. Additionally, it has more useful Semigroup
and Monoid
instances that (<>)
the values when present.
Since: 0.1.0.0
Instances
Eq a => Eq (StrMap k a) Source # | |
Ord a => Ord (StrMap k a) Source # | |
(Show k, Show a) => Show (StrMap k a) Source # | |
Semigroup a => Semigroup (StrMap k a) Source # | |
Semigroup a => Monoid (StrMap k a) Source # | |
insert :: Show k => k -> a -> StrMap k a -> StrMap k a Source #
Insert a value into a StrMap
.
Since: 0.1.0.0
A datatype for representing the keys of entries in a StrMap
.
Contains the original value as well as the Text
ual representation of
that value.
The Eq
and Ord
instances only use the Text
value.
Since: 0.1.0.0
AsStr | |
|