summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Scott <ryan.gl.scott@gmail.com>2019-08-01 07:19:55 -0400
committerRyan Scott <ryan.gl.scott@gmail.com>2019-08-01 07:19:55 -0400
commit7a433d177871538c87f61d1022d1112e6c2e3753 (patch)
tree93b6ca704244ecb74f0957da43dc5f3fd116ddcf
parentf28c74897977b6b84957d369fa1d253135a640dc (diff)
downloadhaskell-wip/strict-ioenv.tar.gz
Strictify everything but useVarswip/strict-ioenv
-rw-r--r--compiler/typecheck/TcSMonad.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/typecheck/TcSMonad.hs b/compiler/typecheck/TcSMonad.hs
index 6f4281e500..a5123b6fc3 100644
--- a/compiler/typecheck/TcSMonad.hs
+++ b/compiler/typecheck/TcSMonad.hs
@@ -2666,7 +2666,7 @@ getGlobalRdrEnvTcS = wrapTcS TcM.getGlobalRdrEnv
bumpStepCountTcS :: TcS ()
bumpStepCountTcS = TcS $ \env -> do { let ref = tcs_count env
; n <- TcM.readTcRef ref
- ; TcM.writeTcRef ref (n+1) }
+ ; TcM.writeTcRef' ref (n+1) }
csTraceTcS :: SDoc -> TcS ()
csTraceTcS doc
@@ -3337,7 +3337,7 @@ useVars co_vars
; wrapTcS $
do { tcvs <- TcM.readTcRef ref
; let tcvs' = tcvs `unionVarSet` co_vars
- ; TcM.writeTcRef' ref tcvs' } }
+ ; TcM.writeTcRef ref tcvs' } }
-- | Equalities only
setWantedEq :: TcEvDest -> Coercion -> TcS ()