cvs commit: hugs98/src compiler.c
Ross Paterson
ross at soi.city.ac.uk
Tue Nov 14 04:09:47 EST 2006
ross 2006/11/14 01:09:47 PST
Modified files:
src compiler.c
Log:
fix record construction and update for records (fixes #46).
The internal representation of newtypes elides the data constructor,
so we need different translations for records on newtypes:
C{} = throw (RecConError "C")
C{x=e} = e
e{x=e'} = e'
The corresponding bug for pattern matching (#48) appears tougher.
Revision Changes Path
1.26 +12 -3 hugs98/src/compiler.c
More information about the Cvs-hugs
mailing list