X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypes%2FTypeRep.lhs;h=aa1f941bc00f21b96ea59a6a5b46cd2f4d2dfe7e;hp=e80bd4d8a6d8b832732a5b9938a72aed5ba2bacd;hb=34c8d0312071f7d0f4d221a997d3408c653ef9e5;hpb=ced4c13ea3577e01556a2f76c2cc458c0be6c83c diff --git a/compiler/types/TypeRep.lhs b/compiler/types/TypeRep.lhs index e80bd4d..aa1f941 100644 --- a/compiler/types/TypeRep.lhs +++ b/compiler/types/TypeRep.lhs @@ -543,6 +543,8 @@ ppr_tc_app _ tc [ty] | tc `hasKey` argTypeKindTyConKey = ptext (sLit "??") ppr_tc_app p tc tys + | [ecvar,ty] <- tys, tc `hasKey` hetMetCodeTypeTyConKey + = ptext (sLit "<[") <> pprType ty <> ptext (sLit "]>@") <> ppr ecvar | isTupleTyCon tc && tyConArity tc == length tys = tupleParens (tupleTyConBoxity tc) (sep (punctuate comma (map pprType tys))) | otherwise @@ -584,7 +586,7 @@ pprTvBndr tv | isLiftedTypeKind kind = ppr tv Note [Infix type variables] ~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In Haskell 98 you can say +With TypeOperators you can say f :: (a ~> b) -> b