Arrow: Hash typeclass

Created on 10 Feb 2018  路  4Comments  路  Source: arrow-kt/arrow

We have equals in Eq, toString in Show. Let's do hashCode in Hash!

https://github.com/typelevel/cats/blob/master/kernel/src/main/scala/cats/kernel/Hash.scala

help wanted noob friendly

All 4 comments

i'd like to take a stab at this

As per #795 I think I'll attempt this. Is the old branch still worth using, or should I start fresh. On that note: Are there some guides to contributing? Or is it best to just start and go along with it in a pr? :)

The contributing guide is...incomplete at best. You need:

  • The typeclass
  • A set of Laws/Tests
  • An instance for at least a couple of datatypes, specially wrappers like Id, ListK, SetK, MapK, SequenceK...
  • Apply the laws to the instances in the IdTest, ListTest, etc.

And lastly, the docs. Ping me when you're ready for this:

  • An entry on the docs menu
  • An entry in the typeclass intro
  • Its own doc

Closed by #1138

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ovu picture ovu  路  4Comments

JorgeCastilloPrz picture JorgeCastilloPrz  路  3Comments

pakoito picture pakoito  路  3Comments

AntonioMateoGomez picture AntonioMateoGomez  路  4Comments

raulraja picture raulraja  路  4Comments