Complete the evidence generation for GADTs
[ghc-hetmet.git] / compiler / iface / BuildTyCl.lhs
index ad58028..9eda907 100644 (file)
@@ -138,7 +138,7 @@ mkNewTyConRep tc rhs_ty
                     if isRecursiveTyCon tc then
                        go (tc:tcs) (substTyWith tvs tys rhs_ty)
                     else
-                        go tcs (head tys)
+                        substTyWith tvs tys rhs_ty
                where
                  (tvs, rhs_ty) = newTyConRhs tc