X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=GHC%2FWeak.lhs;h=4897123cd59c415bb275fbabb36c581aae43586d;hb=1523de9c11a0663e538f00679f6a4a682295b2de;hp=66fefcdb9593b082adad7f6a09a43ddc829b3f9d;hpb=494543819fc0da09e4dfc30c0c88167ae1379ee5;p=ghc-base.git diff --git a/GHC/Weak.lhs b/GHC/Weak.lhs index 66fefcd..4897123 100644 --- a/GHC/Weak.lhs +++ b/GHC/Weak.lhs @@ -20,7 +20,6 @@ module GHC.Weak where import GHC.Base import Data.Maybe -import GHC.IOBase ( IO(..), unIO ) import Data.Typeable {-| @@ -123,10 +122,10 @@ 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 + case unIO io s of { (# s', _ #) -> + unIO (go m') s' }} in go n