simonpj     2003/02/04 07:31:19 PST

  Modified files:
    ghc/compiler/coreSyn MkExternalCore.lhs 
  Log:
        -------------------------------------
        Fix a name-capture bug in Ext-Core
        -------------------------------------
  
  Don't expand newtypes (even non-recursive ones) when going to External Core.
  Reason: the expansion was performed *after* Tidying; the expansion performs
  type substitution, which is only done right if you take account of the Uniques.
  But since it's post-tidying, we got capture of occurence names.
  
  I hope the lack of newtype expansion doesn't hurt anyone; I doubt it will.
  If so, we can think again.
  
  Thanks to Tobias Gedell for this one.
  
  Revision  Changes    Path
  1.16      +24 -7     fptools/ghc/compiler/coreSyn/MkExternalCore.lhs
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc


Reply via email to