We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bcc1bd commit 6095bcdCopy full SHA for 6095bcd
1 file changed
hls-graph/src/Development/IDE/Graph/Internal/Key.hs
@@ -93,7 +93,7 @@ keyMap = unsafePerformIO $ newIORef (GlobalKeyValueMap Map.empty IM.empty 0)
93
-- This is useful for keys that are not based on user data, e.g., for
94
-- tracking temporary actions.
95
newDirectKey :: Int -> Key
96
-newDirectKey i = UnsafeMkKey (- abs i)
+newDirectKey i = UnsafeMkKey $ negate (abs i + 1)
97
98
newKey :: (Typeable a, Hashable a, Show a) => a -> Key
99
newKey k = unsafePerformIO $ do
0 commit comments