[cvs-nhc98] patch applied (hat): Modifyied both nhc98 runtime
system and hat library to catch runtime errors.
Malcolm.Wallace at cs.york.ac.uk
Tue Oct 10 07:16:55 EDT 2006
Wed May 1 09:06:23 PDT 2002 olaf
* Modifyied both nhc98 runtime system and hat library to catch runtime errors.
The nhc98 runtime system now has the global variable
void (*haskellErrorHandler)(char *errorMsg) = NULL;
If it is not null, it will be called for runtime errors that are not handled by Haskell's "error"; i.e. currently "out of heap" and "black hole".
The hat_open function sets haskellErrorHandler to an appropriate function that writes the error message to the trace and closes it. (only if compiled for nhc98)
Also added handling of arithmetic error signals to the hat library.
M ./src/hatlib/Hat.hs -8 +8
M ./src/hatlib/Makefile -1 +3
M ./src/hatlib/hat-c.c -21 +49
M ./src/hatlib/hat-c.h -6 +8
More information about the Cvs-nhc98