X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcErrors.lhs;h=293b3a79584e9e19f575332c7aedc839a137ce31;hb=2b0c363dcaa51295571bc72a2fa0b72bf0ff353a;hp=9531a503e921bff14cf8ba6e3d2440f6acfcb00f;hpb=c1e6031c54cda2c6f9fc107eb6cb04ab490f1fef;p=ghc-hetmet.git diff --git a/compiler/typecheck/TcErrors.lhs b/compiler/typecheck/TcErrors.lhs index 9531a50..293b3a7 100644 --- a/compiler/typecheck/TcErrors.lhs +++ b/compiler/typecheck/TcErrors.lhs @@ -721,8 +721,8 @@ wrapEqErrTcS fl ty1 ty2 thing_inside ; wrapErrTcS $ setCtFlavorLoc fl $ do { -- Apply the current substitition -- and zonk to get rid of flatten-skolems - ; ty_binds_bag <- readTcRef ty_binds_var - ; let subst = mkOpenTvSubst (mkVarEnv (bagToList ty_binds_bag)) + ; ty_binds_map <- readTcRef ty_binds_var + ; let subst = mkOpenTvSubst (mapVarEnv snd ty_binds_map) ; env0 <- tcInitTidyEnv ; (env1, ty1) <- zonkSubstTidy env0 subst ty1 ; (env2, ty2) <- zonkSubstTidy env1 subst ty2