cvs commit: hugs98/src compiler.c
Ross Paterson <[email protected]> Tue, 14 Nov 2006 01:09:47 -0800
| Newsgroups | gmane.comp.lang.haskell.cvs.hugs |
|---|---|
| Message-ID | <[email protected]> |
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