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 7d4ca70 commit 5c57564Copy full SHA for 5c57564
Data/HashMap/Internal/Array.hs
@@ -303,9 +303,8 @@ insert ary idx b = runST (insertM ary idx b)
303
insertM :: Array e -> Int -> e -> ST s (Array e)
304
insertM ary idx b =
305
CHECK_BOUNDS("insertM", count + 1, idx)
306
- do mary <- new_ (count+1)
+ do mary <- new (count+1) b
307
copy ary 0 mary 0 idx
308
- write mary idx b
309
copy ary idx mary (idx+1) (count-idx)
310
unsafeFreeze mary
311
where !count = length ary
0 commit comments