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

Hashable instance for Fingerprint #156

Closed
andrewthad opened this issue May 27, 2018 · 3 comments
Closed

Hashable instance for Fingerprint #156

andrewthad opened this issue May 27, 2018 · 3 comments

Comments

@andrewthad
Copy link
Contributor

We've already got a Hashable instance for TypeRep. Having one for Fingerprint would be handy too.

@treeowl
Copy link

treeowl commented Oct 31, 2018

Agreed. Note that the instance for TypeRep doesn't actually salt properly:

forall (s1 :: Salt) (s2 :: Salt).
hashWithSalt s1 = hashWithSalt s2

I suppose the logic here is that there should be few enough collisions for HashMap purposes using just one of the words of the Fingerprint?

@treeowl
Copy link

treeowl commented Oct 31, 2018

Actually.... that logic applies to TypeRep fingerprints, but I'm not sure it applies to fingerprints in general. Are the two words sometimes independent?

@hvr
Copy link
Collaborator

hvr commented May 5, 2019

Resolved by #157

@hvr hvr closed this as completed May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants