[cvs-nhc98] Added combinators and transformation for portable untraced

User olaf olaf@sparud.net
Wed, 21 Nov 2001 17:11:45 +0100 (CET)


olaf: Wed Nov 21 17:11:45 CET 2001

Update of /usr/src/master/nhc/src/prelude/Hat
In directory hinken:/tmp/cvs-serv17555/src/prelude/Hat

Modified Files:
	Hat.hs TPrelude.hs hat.c 
Log Message:
Added combinators and transformation for portable untraced code.
These new parts have not yet been tested at all and combinators are not yet complete. However, everything compiles and the transformation for traced code still seems to work, although some of its combinators have also been changed (made less strict in trace).

Also corrected some small bugs:

putStr now produces output on a per character basis.

pattern bound variables, including cafs, are now considered lambda-bound and their definition is transformed differently from let-bound vars.
Still need to transform type declarations accordingly!!!

Integers up to 32 bit are now written in network byteorder to the trace.

Integer and Fractional literals are now handled correctly by the transformation, using two new combinators.