Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hash[SortedSet[A]]'s constraint seems too strong #3038

Closed
travisbrown opened this issue Sep 8, 2019 · 2 comments
Closed

Hash[SortedSet[A]]'s constraint seems too strong #3038

travisbrown opened this issue Sep 8, 2019 · 2 comments
Labels

Comments

@travisbrown
Copy link
Contributor

Right now we have the following:

  implicit def catsKernelStdHashForSortedSet[A: Order: Hash]: Hash[SortedSet[A]] =
    new SortedSetHash[A]

I don't think we need A: Order here, just A: Hash (which implies A: Eq).

@tnielens
Copy link
Contributor

tnielens commented Apr 9, 2021

This was already implemented:

implicit def catsKernelStdHashForSortedSet[A: Hash]: Hash[SortedSet[A]] =

@rossabaker
Copy link
Member

Yep. Thanks for the nudge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants