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 189b261 commit 0e0b74dCopy full SHA for 0e0b74d
Data/HashMap/Internal.hs
@@ -948,7 +948,8 @@ unsafeInsert k0 v0 m0 = runST (go h0 k0 v0 0 m0)
948
-- It is the caller's responsibility to ensure that the HashMap argument is in
949
-- WHNF.
950
two :: Shift -> Hash -> k -> v -> Hash -> HashMap k v -> ST s (HashMap k v)
951
-two s h1 k1 v1 = two' s h1 (Leaf h1 (L k1 v1))
+two s h1 k1 v1 = two' s h1 l
952
+ where !l = Leaf h1 (L k1 v1)
953
{-# INLINE two #-}
954
955
-- | Create a map from two 'Leaf' or 'Collision' nodes whose hashes are
0 commit comments