@@ -1277,12 +1277,12 @@ alter f k = Exts.inline alter' f (hash k) k
12771277{-# INLINABLE alter #-}
12781278
12791279alter' :: Eq k => (Maybe v -> Maybe v ) -> Hash -> k -> HashMap k v -> HashMap k v
1280- alter' f h0 k0 m0 = go h0 k0 0 m0
1280+ alter' f h0 k0 m0 = go_alter' h0 k0 0 m0
12811281 where
1282- go ! h ! k ! _ Empty = case f Nothing of
1282+ go_alter' ! h ! k ! _ Empty = case f Nothing of
12831283 Nothing -> Empty
12841284 Just v -> Leaf h $ L k v
1285- go h k s t@ (Leaf hy l@ (L ky v))
1285+ go_alter' h k s t@ (Leaf hy l@ (L ky v))
12861286 | hy == h =
12871287 if ky == k
12881288 then case f $ Just v of
@@ -1297,13 +1297,13 @@ alter' f h0 k0 m0 = go h0 k0 0 m0
12971297 | otherwise = case f Nothing of
12981298 Nothing -> t
12991299 Just v' -> runST $ two s h k v' hy t
1300- go h k s t@ (BitmapIndexed b ary)
1300+ go_alter' h k s t@ (BitmapIndexed b ary)
13011301 | b .&. m == 0 = case f Nothing of
13021302 Nothing -> t
13031303 Just v' -> bitmapIndexedOrFull (b .|. m) $! A. insert ary i $! Leaf h $! L k v'
13041304 | otherwise =
13051305 case A. index# ary i of
1306- (# ! st # ) -> case go h k (nextShift s) st of
1306+ (# ! st # ) -> case go_alter' h k (nextShift s) st of
13071307 Empty
13081308 | A. length ary == 2
13091309 , (# l # ) <- A. index# ary (otherOfOneOrZero i)
@@ -1317,10 +1317,10 @@ alter' f h0 k0 m0 = go h0 k0 0 m0
13171317 where
13181318 m = mask h s
13191319 i = sparseIndex b m
1320- go h k s t@ (Full ary) = do
1320+ go_alter' h k s t@ (Full ary) = do
13211321 case A. index# ary i of
13221322 (# ! st # ) -> do
1323- let ! st' = go h k (nextShift s) st
1323+ let ! st' = go_alter' h k (nextShift s) st
13241324 if st' `ptrEq` st
13251325 then t
13261326 else case st' of
@@ -1330,7 +1330,7 @@ alter' f h0 k0 m0 = go h0 k0 0 m0
13301330 in BitmapIndexed bm ary'
13311331 _ -> Full (A. update ary i st')
13321332 where i = index h s
1333- go h k s t@ (Collision hy ls)
1333+ go_alter' h k s t@ (Collision hy ls)
13341334 | h == hy = case indexOf k ls of
13351335 Just i -> do
13361336 case A. index# ls i of
0 commit comments