X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypes%2FGenerics.lhs;h=323da41d66a4b54cb24a6e6937e5b515b8b34898;hp=f4afda59991b315b2c24499ca977d08a9d3191a4;hb=927df6486bc0dcb598b82702ca40c8fad0d9b25f;hpb=d7fb8d371d3228774331a67db8da805b2d68f1c4 diff --git a/compiler/types/Generics.lhs b/compiler/types/Generics.lhs index f4afda5..323da41 100644 --- a/compiler/types/Generics.lhs +++ b/compiler/types/Generics.lhs @@ -135,11 +135,7 @@ tc_mkRepTyCon tycon metaDts = ; let -- `tyvars` = [a,b] tyvars = tyConTyVars tycon - -- rep0Ty has kind `kind of D` -> * - -- rep_kind = tyConKind tycon `mkArrowKind` liftedTypeKind - -- SLPJ The above type looks quite wrong to me! - -- The kind sig in the comment for rep0Ty looks right - -- + -- rep0Ty has kind * -> * rep_kind = liftedTypeKind `mkArrowKind` liftedTypeKind -- `appT` = D a b @@ -222,7 +218,7 @@ data MetaTyCons = MetaTyCons { -- One meta datatype per dataype , metaS :: [[TyCon]] } instance Outputable MetaTyCons where - ppr (MetaTyCons d c s) = ppr d <+> ppr c <+> ppr s + ppr (MetaTyCons d c s) = ppr d $$ vcat (map ppr c) $$ vcat (map ppr (concat s)) metaTyCons2TyCons :: MetaTyCons -> [TyCon] metaTyCons2TyCons (MetaTyCons d c s) = d : c ++ concat s