patch applied (ghc): Tidy up the treatment of SPECIALISE pragmas

Simon Peyton Jones simonpj at microsoft.com
Wed Jan 23 10:36:21 EST 2008


Tue Jan 22 04:26:13 PST 2008  simonpj at microsoft.com
  * Tidy up the treatment of SPECIALISE pragmas
  
  Remove the now-redundant "const-dicts" field in SpecPrag
  
  In dsBinds, abstract over constant dictionaries in the RULE.
  This avoids the creation of a redundant, duplicate, rule later
  in the Specialise pass, which was happening before.
  
  There should be no effect on performance either way, just less
  duplicated code, and the compiler gets a little simpler.
  

    M ./compiler/deSugar/DsBinds.lhs -16 +27
    M ./compiler/hsSyn/HsBinds.lhs -5 +2
    M ./compiler/typecheck/TcBinds.lhs -4 +2
    M ./compiler/typecheck/TcHsSyn.lhs -3 +2



More information about the Cvs-ghc mailing list