projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use a bang pattern when we where/let-bind values with unlifted types
[ghc-base.git]
/
GHC
/
Weak.lhs
diff --git
a/GHC/Weak.lhs
b/GHC/Weak.lhs
index
6db5b5c
..
2d9163e
100644
(file)
--- a/
GHC/Weak.lhs
+++ b/
GHC/Weak.lhs
@@
-123,7
+123,7
@@
runFinalizerBatch (I# n) arr =
let go m = IO $ \s ->
case m of
0# -> (# s, () #)
- _ -> let m' = m -# 1# in
+ _ -> let !m' = m -# 1# in
case indexArray# arr m' of { (# io #) ->
case unIO io s of { (# s', _ #) ->
unIO (go m') s'