Fix the Hashable instance of Key (#588)
commit0c9a0961abbeef851b4117e6408f15a6d46eb1f1
authorNeil Mitchell <ndmitchell@gmail.com>
dateWed 27 May 2020, 17:58 (6 years ago)
parenta9bf409
src/Development/IDE/Core/Shake.hs+1−1
@@ -156,7 +156,7 @@ instance Eq Key where
156156 | otherwise = False
157157
158158instance 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