X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=ghc%2Fcompiler%2Fspecialise%2FSpecConstr.lhs;h=9ff7d16ff5458d94575da999be35e8b9e676e28e;hb=922805b23964e54f9aa5e7408747617d32ea0e1d;hp=85bbd96ebd037127085bd299a56c64ba56d87bf1;hpb=7d841483081735f5f906a6bb5e80249d97f3226b;p=ghc-hetmet.git diff --git a/ghc/compiler/specialise/SpecConstr.lhs b/ghc/compiler/specialise/SpecConstr.lhs index 85bbd96..9ff7d16 100644 --- a/ghc/compiler/specialise/SpecConstr.lhs +++ b/ghc/compiler/specialise/SpecConstr.lhs @@ -14,11 +14,10 @@ import CoreSyn import CoreLint ( showPass, endPass ) import CoreUtils ( exprType, eqExpr, mkPiTypes ) import CoreFVs ( exprsFreeVars ) -import CoreTidy ( tidyIdRules ) +import CoreTidy ( pprTidyIdRules ) import WwLib ( mkWorkerArgs ) import DataCon ( dataConRepArity ) import Type ( tyConAppArgs ) -import PprCore ( pprIdRules ) import Id ( Id, idName, idType, idSpecialisation, isDataConId_maybe, mkUserLocal, mkSysLocal ) @@ -182,7 +181,7 @@ specConstrProgram dflags us binds endPass dflags "SpecConstr" Opt_D_dump_spec binds' dumpIfSet_dyn dflags Opt_D_dump_rules "Top-level specialisations" - (vcat (map dump_specs (concat (map bindersOf binds')))) + (vcat (map pprTidyIdRules (concat (map bindersOf binds')))) return binds' where @@ -190,8 +189,6 @@ specConstrProgram dflags us binds go env (bind:binds) = scBind env bind `thenUs` \ (env', _, bind') -> go env' binds `thenUs` \ binds' -> returnUs (bind' : binds') - - dump_specs var = pprIdRules (tidyIdRules var) \end{code}