[cvs-nhc98] patch applied (hat): Fixed transformation of default methods.

Malcolm Wallace Malcolm.Wallace at cs.york.ac.uk
Tue Oct 10 07:02:33 EDT 2006


Mon Mar 26 08:27:20 PST 2001  olaf
  * 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.

    M ./src/compiler98/DbgTrans.hs +16
    M ./src/compiler98/IntState.hs -2 +31
    M ./src/compiler98/Rename.hs -1 +2


More information about the Cvs-nhc98 mailing list