[Haskell-cafe] Data.EnumMap ?
Johannes Waldmann
waldmann at imn.htwk-leipzig.de
Tue Mar 31 19:41:27 UTC 2015
Adam Gundry <adam <at> well-typed.com> writes:
> https://hackage.haskell.org/package/enummapset
Ah. That's the wrapper I want.
> so this must be a good idea, since it's come up so many times.
Can we then please put it in containers?
NB: The name (EnumMap) seems wrong, though. The module will
be imported qualified anyways, so the type should just be Map.
Then, changing the implementation (if the key type implements
Ord, Enum, and Hashable) is really just changing the import.
But then, it's at least consistently wrong -
e.g., in line with Data.HashMap.
Thanks, Johannes.
More information about the Haskell-Cafe
mailing list