mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-01 09:49:24 +03:00
Ignore DN layers in Hashable Name.
So that hashes do not depend on irrelevant information, such as line/column numbers of interface implementations.
This commit is contained in:
parent
8291c8bbeb
commit
b39f1fd161
@ -64,6 +64,8 @@ Hashable String where
|
||||
export
|
||||
Hashable Name where
|
||||
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 n = hashWithSalt h (show n)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user