(1) Caching FD improvements for efficiency, (2) preventing cascading deriveds from...
[ghc-hetmet.git] / compiler / typecheck / TcSimplify.lhs
index ee4be27..732f5d5 100644 (file)
@@ -839,7 +839,7 @@ defaultTyVar untch the_tv
   | isMetaTyVar the_tv
   , inTouchableRange untch the_tv
   , not (k `eqKind` default_k)
-  = do { (ev, better_ty) <- TcSMonad.newKindConstraint (mkTyVarTy the_tv) default_k
+  = do { (ev, better_ty) <- TcSMonad.newKindConstraint the_tv default_k
        ; let loc = CtLoc DefaultOrigin (getSrcSpan the_tv) [] -- Yuk
                           -- 'DefaultOrigin' is strictly the declaration, but it's convenient
              wanted_eq  = CTyEqCan { cc_id     = ev