[cvs-nhc98] Fixed definition of instance Enum for tracing.

User olaf olaf@sparud.net
Fri, 23 Mar 2001 19:02:01 +0100 (CET)


olaf: Fri Mar 23 19:02:00 CET 2001

Update of /usr/src/master/nhc/src/prelude/Prelude
In directory hinken:/tmp/cvs-serv24736

Modified Files:
	Enum_Char.hs 
Log Message:
Fixed definition of instance Enum for tracing.

For tracing the instance lacked definitions for toEnum and fromEnum.
The same definitions as for untraced programs can be used.
Hopefully not more instance definitions are lacking for tracing;
here it really hurts that the compiler, following the Haskell standard,
cannot detect missing instance definitions.

Unfortunately a missing instance definition leads to faulty byte code
for tracing in the current compiler. Still have to modify transformation
to give proper runtime error.