summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--compiler/GHC/Tc/Errors.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Tc/Errors.hs b/compiler/GHC/Tc/Errors.hs
index 82aa8fcc6a..12576437e2 100644
--- a/compiler/GHC/Tc/Errors.hs
+++ b/compiler/GHC/Tc/Errors.hs
@@ -395,8 +395,8 @@ warnRedundantConstraints ctxt env info ev_vars
= return ()
| SigSkol user_ctxt _ _ <- info
- = setLclEnv env $ -- We want to add "In the type signature for f"
- -- to the error context, which is a bit tiresome
+ = restoreLclEnv env $ -- We want to add "In the type signature for f"
+ -- to the error context, which is a bit tiresome
setSrcSpan (redundantConstraintsSpan user_ctxt) $
report_redundant_msg True