Merge pull request #96 from ziman/fix-impl-rebuild

Exclude `DN` from `Hashable Name`
This commit is contained in:
Edwin Brady 2020-05-21 19:20:45 +01:00 committed by GitHub
commit 1e570f5895
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,8 @@ Hashable String where
export export
Hashable Name where Hashable Name where
hashWithSalt h (MN s _) = hashWithSalt h s hashWithSalt h (MN s _) = hashWithSalt h s
hashWithSalt h (DN _ n) = hashWithSalt h n
hashWithSalt h (NS ns n) = hashWithSalt (hashWithSalt h ns) n
hashWithSalt h (Resolved i) = hashWithSalt h i hashWithSalt h (Resolved i) = hashWithSalt h i
hashWithSalt h n = hashWithSalt h (show n) hashWithSalt h n = hashWithSalt h (show n)