Skip to content

Commit 139caa1

Browse files
committed
Add bang in Array.foldr_
1 parent 5c7d476 commit 139caa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/HashMap/Internal/Array.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ foldr' f = \ z0 ary0 -> go ary0 (length ary0 - 1) z0
401401
foldr :: (a -> b -> b) -> b -> Array a -> b
402402
foldr f = \ z0 ary0 -> foldr_ ary0 (length ary0) 0 z0
403403
where
404-
foldr_ ary n i z
404+
foldr_ !ary n i z
405405
| i >= n = z
406406
| otherwise
407407
= case index# ary i of

0 commit comments

Comments
 (0)