[cvs-nhc98] Fixed transformation of default methods.

User olaf olaf@sparud.net
Mon, 26 Mar 2001 18:27:22 +0200 (CEST)


olaf: Mon Mar 26 18:27:22 CEST 2001

Update of /usr/src/master/nhc/src/prelude/PreludeDebug
In directory hinken:/tmp/cvs-serv4381/src/prelude/PreludeDebug

Modified Files:
	PreludeDebug.hs 
Log Message:
Fixed transformation of default methods.

A missing default method lead to a corrupted trace file and sometimes even a segmentation fault. The problem was that the call to `fatal' was not wrapped within an R. Furthermore the error message "No match in pattern." was rather misleading.

Now transform default method like any other function definition. The error message which has been introduced by the renamer is transformed like a normal expression. Changed renamer so that this compiler introduced expression has no source positions. So the explicit call of error is visible in the trace, but the browser user cannot ask for the source position.