patch applied (ghc): Follow changes in the base library
igloo at earth.li
Mon Sep 22 19:24:13 EDT 2008
On Mon, Sep 22, 2008 at 06:04:34PM +0200, pepe wrote:
> this patch makes a subtle change to the semantics of tryUser in
> Panic.hs, used in the TcRnMonad.
> I wonder if this is intended or just an oversight*.
I've been thinking about exceptions in GHC, though, and I think that
rather than trying to keep GHC stage 1 working with both old and new
exceptions for the next few years we should just put an extensible
exceptions library in the GHC tree (or perhaps even in a Cabal package,
so that things like ghc-pkg can use it).
For tryUser, I think that what we're really interested in is catching
ioError (userError "IOEnv failure")
from IOEnv.failM, so what we ought to do is to make a
data IOEnvFailure = IOEnvFailure
datatype and throw that instead.
Anyone got any opinions?
More information about the Cvs-ghc