cvs commit: hugs98/lib Prelude.hs hugs98/lib/exts Exception.hs ConcBase.hs

Simon Marlow simonmar@microsoft.com
Mon, 2 Apr 2001 10:03:41 +0100


>   One big difference is that, because IOError handling is handled
>   separately from HugsExceptions, we can't readily implement
>  =20
>     throw :: Exception -> a
>  =20
>   But we can provide
>  =20
>     throwIO :: Exception -> IO a
>  =20
>   (which I'll try to persuade the GHC people to ask to their
>   implementation).

This is called 'ioError' in GHC, because the Exception type is now a
synonym for IOError (in GHC 5.00).  This makes it easier to port code
that uses IOErrors to use Exceptions - the Exception interface is just
an extension of the existing IOError interface.

Cheers,
	Simon