RFC: Adding a Hashable type class and HashMap/HashSet data types to HP

Gregory Collins greg at gregorycollins.net
Fri Nov 19 04:48:04 EST 2010

On Thu, Nov 18, 2010 at 11:05 PM, Johan Tibell <johan.tibell at gmail.com> wrote:

> * A type class for things that can be hashed, Hashable.
> class Hashable a where
>    hash :: a -> Word


An issue that needs to be resolved is: "Where should this change go?" We have a
couple of options:

  a) Bring http://hackage.haskell.org/package/hashable into the platform

  b) Put the module into base -- probably a -1 for political/logistical reasons

  c) Put it into containers -- probably a -1 because it would force a
     containers dependency where there was no containers dependency before.

Any other ideas?

Gregory Collins <greg at gregorycollins.net>

More information about the Libraries mailing list