
20 Jan
2015
20 Jan
'15
12:35 p.m.
Tobias Dammers
Pragmatic workaround: newtype-wrap HashMap?
I've put up a quick package wrapping `HashMap` and `Map` with the appropriate Monoid instance here [1]. In addition to the types themselves and a wide variety of `lens` and `newtype` instances, I export a selection of the more widely used functions supported by `Map` and `HashMap`. Those functions that aren't exported can be wrapped using the `Wrapping` or `Newtype` instance without too much trouble or if there's demand I wouldn't be opposed to exporting more of `Map`'s functionality. Patches accepted. Cheers, - Ben [1] https://github.com/bgamari/monoidal-containers http://hackage.haskell.org/package/monoidal-containers