[cvs-nhc98] Corrected two bugs in new handling of newtype data constru
User olaf
olaf@sparud.net
Thu, 21 Feb 2002 12:45:25 +0100 (CET)
olaf: Thu Feb 21 12:45:24 CET 2002
Update of /usr/src/master/nhc/src/compiler98
In directory hinken:/tmp/cvs-serv1199/src/compiler98
Modified Files:
DbgTrans.hs
Log Message:
Corrected two bugs in new handling of newtype data constructors and twiddle in patterns.
DeclsScc can occur because of desugaring of record expressions.
Variations of the variable "irrefutableDummy" need to be created that don't clash with each other. First, the variable need to be qualified to avoid clashes between modules. Second, the source position is part of the name to avoid clashes within the Prelude. The later is only a hack; there may still be a clash but it hasn't been noticed yet.