patch applied (ghc): Gruesome fix in CorePrep to fix embarassing Trac #4121

Simon Peyton Jones simonpj at microsoft.com
Mon Jun 14 09:30:07 EDT 2010


Mon Jun 14 06:27:26 PDT 2010  simonpj at microsoft.com
  * Gruesome fix in CorePrep to fix embarassing Trac #4121
  
  This is a long-lurking bug that has been flushed into
  the open by other arity-related changes.  There's a
  long comment
  
       Note [CafInfo and floating]
  
  to explain.  
  
  I really hate the contortions we have to do through to keep correct
  CafRef information on top-level binders.  The Right Thing, I believe,
  is to compute CAF and arity information later, and merge it into the
  interface-file information when the latter is generated.
  
  But for now, this hackily fixes the problem.

    M ./compiler/coreSyn/CorePrep.lhs -40 +120

View patch online:
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc;a=darcs_commitdiff;h=20100614132726-1287e-a9d3e1764b46098accaee6bed3c33ef4485896fa.gz



More information about the Cvs-ghc mailing list