X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=ghc%2Fcompiler%2Ftypecheck%2FTcRnDriver.lhs;h=7371d1cc315e23f91b2c80b24dbef33ef62ab52e;hb=59c796f8e77325d35f29ddd3e724bfa780466d40;hp=52ac93b5f126d4d65f83bf562002afb968c917ca;hpb=c8898df0380dad4705353de00a48ea105d00bcc5;p=ghc-hetmet.git diff --git a/ghc/compiler/typecheck/TcRnDriver.lhs b/ghc/compiler/typecheck/TcRnDriver.lhs index 52ac93b..7371d1c 100644 --- a/ghc/compiler/typecheck/TcRnDriver.lhs +++ b/ghc/compiler/typecheck/TcRnDriver.lhs @@ -120,7 +120,7 @@ import Panic ( ghcError, GhcException(..) ) #endif import FastString ( mkFastString ) -import Util ( sortLt ) +import Util ( sortLe ) import Bag ( unionBags, snocBag ) import Maybe ( isJust ) @@ -1135,9 +1135,9 @@ ppr_insts dfun_ids = text "INSTANCES" $$ nest 4 (ppr_sigs dfun_ids) ppr_sigs :: [Var] -> SDoc ppr_sigs ids -- Print type signatures; sort by OccName - = vcat (map ppr_sig (sortLt lt_sig ids)) + = vcat (map ppr_sig (sortLe le_sig ids)) where - lt_sig id1 id2 = getOccName id1 < getOccName id2 + le_sig id1 id2 = getOccName id1 <= getOccName id2 ppr_sig id = ppr id <+> dcolon <+> ppr (tidyTopType (idType id)) ppr_rules :: [IdCoreRule] -> SDoc