Skip to content

Commit 0c9a096

Browse files
authored
Fix the Hashable instance of Key (#588)
1 parent a9bf409 commit 0c9a096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Development/IDE/Core/Shake.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ instance Eq Key where
156156
| otherwise = False
157157

158158
instance Hashable Key where
159-
hashWithSalt salt (Key key) = hashWithSalt salt key
159+
hashWithSalt salt (Key key) = hashWithSalt salt (typeOf key, key)
160160

161161
-- | The result of an IDE operation. Warnings and errors are in the Diagnostic,
162162
-- and a value is in the Maybe. For operations that throw an error you

0 commit comments

Comments
 (0)