Fix egregious and long-standing tidying bug
authorsimonpj@microsoft.com <unknown>
Thu, 25 May 2006 09:43:00 +0000 (09:43 +0000)
committersimonpj@microsoft.com <unknown>
Thu, 25 May 2006 09:43:00 +0000 (09:43 +0000)
commita5168e30f331c6fe912cca4f53be8544ce6800d5
tree3ba462f65ae4d2bcbb9fbf33e93e139e3be75628
parent14e8b22bfb8d6428c9a37314efd7a28ae40b9154
Fix egregious and long-standing tidying bug

A typo in tidyAlt meant that we could get shadowing of occurrence names
in the output of tidying.  (Specifically, of existentially bound type
variables.)  That in turn meant that an IfaceExpr could have shadowing, so
when the IfaceExpr was read in, it meant something different.
That in turn led to an obscure crash like:
Panic: tcIfaceTyVar

Anyway, this fixes it.  MERGE into 6.4.3.
compiler/coreSyn/CoreTidy.lhs