Skip to content

Commit 7906f1a

Browse files
committed
Add bangs in hashWithSalt and A.foldl'_
1 parent 0c9e42e commit 7906f1a

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
@@ -559,7 +559,7 @@ instance (Hashable k, Hashable v) => Hashable (HashMap k v) where
559559
hashWithSalt salt hm = go salt hm
560560
where
561561
go :: Int -> HashMap k v -> Int
562-
go s Empty = s
562+
go !s Empty = s
563563
go s (BitmapIndexed _ a) = A.foldl' go s a
564564
go s (Leaf h (L _ v))
565565
= s `H.hashWithSalt` h `H.hashWithSalt` v

Data/HashMap/Internal/Array.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ unsafeUpdateM ary idx b =
382382
foldl' :: (b -> a -> b) -> b -> Array a -> b
383383
foldl' f = \ z0 ary0 -> foldl'_ ary0 (length ary0) 0 z0
384384
where
385-
foldl'_ ary n i !z
385+
foldl'_ !ary n i !z
386386
| i >= n = z
387387
| otherwise
388388
= case index# ary i of

0 commit comments

Comments
 (0)