[project @ 2003-02-04 15:31:18 by simonpj]
authorsimonpj <unknown>
Tue, 4 Feb 2003 15:31:18 +0000 (15:31 +0000)
committersimonpj <unknown>
Tue, 4 Feb 2003 15:31:18 +0000 (15:31 +0000)
commit17777c534ae9ee723b94c234d5fe207f9d68c5d1
tree16800cf1ad7a85d6a8136e7cf02dd6fb2e0d9f86
parent957bf3756ffd56f5329a2aabe1022d6f996dd641
[project @ 2003-02-04 15:31:18 by simonpj]
-------------------------------------
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.
ghc/compiler/coreSyn/MkExternalCore.lhs