error undefined

Simon Marlow simonmar@microsoft.com
Fri, 9 Feb 2001 02:09:21 -0800


> Thu, 8 Feb 2001 07:40:42 -0800, Simon Marlow 
> <simonmar@microsoft.com> pisze:
> 
> > 	Prelude> error undefined
> > 	*** Exception: *** Exception: Prelude.undefined
> 
> When somebody writes
>     let a = error a in a
> this is his fault? :-)
> 
> But ^C does not work then and I blame ghc for that :-)

Hey, good bug.  I forgot to unblock async exceptions in the recursive
exception handler, which meant that the ^C exception was never
delivered.  Now fixed.

> Also it hangs a standalone compiled program.

In this case, I think you'll find it can be interrupted (unless the
program overrides the SIGINT handler).

Cheers,
	Simon