X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2Ftypecheck%2FTcRnDriver.lhs;fp=compiler%2Ftypecheck%2FTcRnDriver.lhs;h=b6525b874c8bb8917f8a591a059ee3c8b659ef70;hp=9bfde666d38df84617ee0d990357058836b4d73a;hb=c8c2f6bb7d79a2a6aeaa3233363fdf0bbbfad205;hpb=025477ef644353f9168a16d0cb9431bcca36be4d diff --git a/compiler/typecheck/TcRnDriver.lhs b/compiler/typecheck/TcRnDriver.lhs index 9bfde66..b6525b8 100644 --- a/compiler/typecheck/TcRnDriver.lhs +++ b/compiler/typecheck/TcRnDriver.lhs @@ -72,7 +72,6 @@ import Outputable import DataCon import Type import Class -import Pair import TcType ( orphNamesOfDFunHead ) import Inst ( tcGetInstEnvs ) import Data.List ( sortBy ) @@ -1612,7 +1611,7 @@ ppr_tycons fam_insts type_env = vcat [ text "TYPE CONSTRUCTORS" , nest 2 (ppr_tydecls tycons) , text "COERCION AXIOMS" - , nest 2 (ppr_axioms (typeEnvCoAxioms type_env)) ] + , nest 2 (vcat (map pprCoAxiom (typeEnvCoAxioms type_env))) ] where fi_tycons = map famInstTyCon fam_insts tycons = [tycon | tycon <- typeEnvTyCons type_env, want_tycon tycon] @@ -1647,14 +1646,6 @@ ppr_tydecls tycons ppr_tycon tycon = ppr (tyThingToIfaceDecl (ATyCon tycon)) where -ppr_axioms :: [CoAxiom] -> SDoc -ppr_axioms axs - = vcat (map ppr_ax axs) - where - ppr_ax ax = sep [ ptext (sLit "coercion") <+> ppr ax <+> ppr (co_ax_tvs ax) - , nest 2 (dcolon <+> pprEqPred - (Pair (co_ax_lhs ax) (co_ax_rhs ax))) ] - ppr_rules :: [CoreRule] -> SDoc ppr_rules [] = empty ppr_rules rs = vcat [ptext (sLit "{-# RULES"),