
31 Mar
2015
31 Mar
'15
3:41 p.m.
Adam Gundry
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.