Tidy tyvar OccNames in TcTyClDecl
authorsimonpj@microsoft.com <unknown>
Wed, 4 Oct 2006 12:12:39 +0000 (12:12 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 4 Oct 2006 12:12:39 +0000 (12:12 +0000)
commit4b922606a68ee6402803b217ea899e9dd7f12f9b
tree50f2b30c5218b152198e85b183a82f65320e12bb
parent1f315eba139d1845f44f5fefcc7d3c353eba93d3
Tidy tyvar OccNames in TcTyClDecl

We want the universal and existential tyvars of a data constructor to
have distinct OccNames.  It's confusing if they don't (in error messages,
for example), and with the current way of generating IfaceSyn, it actally
generates bogus interface files.  (Which bit Roman.)

When IfaceSyn is full of Names, this won't matter so much, but it still
seems cleaner.

This patch adds a 'tidy' step to the generation of DataCon type
variables in TcTyClDecls.tcResultType
compiler/basicTypes/DataCon.lhs
compiler/typecheck/TcTyClsDecls.lhs