When we use IntMap.insert on a key that already exists in the IntMap, I would of expected the value at the key to be replaced by the new value, but instead it was retained.
If this is a bug I think the following
insert :: forall a . Int -> a -> IntMap a -> IntMap a
insert = insertWithKey (\_ a _ -> a)
Needs to be changed to
insert :: forall a . Int -> a -> IntMap a -> IntMap a
insert = insertWithKey (\_ _ a -> a)
When we use IntMap.insert on a key that already exists in the IntMap, I would of expected the value at the key to be replaced by the new value, but instead it was retained.
If this is a bug I think the following
Needs to be changed to