Skip to content

Commit 868aee0

Browse files
committed
lookupCont: Use Shift type synonym
1 parent 0d0697e commit 868aee0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Data/HashMap/Internal.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,11 +708,11 @@ lookupCont ::
708708
-> (v -> Int -> r) -- Present continuation
709709
-> Hash -- The hash of the key
710710
-> k
711-
-> Int -- The offset of the subkey in the hash.
711+
-> Shift -- The offset of the subkey in the hash.
712712
-> HashMap k v -> r
713713
lookupCont absent present !h0 !k0 !s0 !m0 = go h0 k0 s0 m0
714714
where
715-
go :: Eq k => Hash -> k -> Int -> HashMap k v -> r
715+
go :: Eq k => Hash -> k -> Shift -> HashMap k v -> r
716716
go !_ !_ !_ Empty = absent (# #)
717717
go h k _ (Leaf hx (L kx x))
718718
| h == hx && k == kx = present x (-1)

0 commit comments

Comments
 (0)