Exeption handling in GHC

Sarah Thompson sarah@telergy.com
Fri, 24 Jan 2003 21:59:03 -0000


Hi all,

I'm trying to get exception handling working in GHC, but don't seem to be
able to make it work. Am I likely to be missing a compiler switch, or
something?

Cutting things down to basics, I'd have thought that the following
expression (typed at the ghci command prompt) should work:

	try (error "x")

but the result is

	*** Exception: x

I seem to get the same problem with compiled code. Any ideas anyone?

TIA,
Sarah