Skip to content

Commit 5b7a232

Browse files
committed
Address two more lints
1 parent 1411cec commit 5b7a232

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Data/HashMap/Internal.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ insertModifying x f k0 m0 = go h0 k0 0 m0
967967
| hy == h = if ky == k
968968
then case f y of
969969
(# v' #) | ptrEq y v' -> t
970-
| otherwise -> Leaf h (L k (v'))
970+
| otherwise -> Leaf h (L k v')
971971
else collision h l (L k x)
972972
| otherwise = runST (two s h k x hy t)
973973
go h k s t@(BitmapIndexed b ary)

tests/Strictness.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pSingletonKeyStrict :: Int -> Bool
4848
pSingletonKeyStrict v = isBottom $ HM.singleton (bottom :: Key) v
4949

5050
pSingletonValueStrict :: Key -> Bool
51-
pSingletonValueStrict k = isBottom $ (HM.singleton k (bottom :: Int))
51+
pSingletonValueStrict k = isBottom $ HM.singleton k (bottom :: Int)
5252

5353
pLookupDefaultKeyStrict :: Int -> HashMap Key Int -> Bool
5454
pLookupDefaultKeyStrict def m = isBottom $ HM.lookupDefault def bottom m

0 commit comments

Comments
 (0)