Make rule printing wobble less
authorsimonpj@microsoft.com <unknown>
Thu, 21 Aug 2008 12:31:00 +0000 (12:31 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 21 Aug 2008 12:31:00 +0000 (12:31 +0000)
commit10f18550c3684368b9d8e5b7adcccc14994cf170
tree0d7e11fe43ed99441cf2d9ac74f3921962b89f3d
parent0069a47ad1a539c894f66163cf30c7d98dc9b016
Make rule printing wobble less

a) When generating specialisations, include the types in the name
   of the rule, to avoid having rules with duplicate names.
   (The rule name is used to put rules in canonical order for
   fingerprinting.)

b) In Specialise and SpecConstr use a new function Rules.pprRulesForUser
   to print rules in canonical order.  This reduces unnecessary wobbling
   in test output, notably in T2486
compiler/specialise/Rules.lhs
compiler/specialise/SpecConstr.lhs
compiler/specialise/Specialise.lhs