[cvs-nhc98] Bugfix for strict datatypes in the (old) tracing transform

Malcolm Wallace malcolm@sparud.net
Tue, 13 Nov 2001 15:18:16 +0100 (CET)


malcolm: Tue Nov 13 15:18:15 CET 2001

Update of /usr/src/master/nhc/src/compiler98
In directory hinken:/tmp/cvs-serv19549

Modified Files:
	DbgDataTrans.hs 
Log Message:
Bugfix for strict datatypes in the (old) tracing transformation.
Previously, a type like
    data AB a = C !a !a
was transformed to
    data AB a = C (R !a) (R !a)
This type is incorrect, but appeared in interface files nevertheless,
whence it could not be parsed back in.  This fix makes the
transformation produce the type
    data AB a = C !(R a) !(R a)
which is also somewhat incorrect (or misleading) but is actually parsable.