Fix Trac #1678; be more careful about catching and reporting exceptions in spliced...
authorsimonpj@microsoft.com <unknown>
Wed, 10 Oct 2007 14:57:05 +0000 (14:57 +0000)
committersimonpj@microsoft.com <unknown>
Wed, 10 Oct 2007 14:57:05 +0000 (14:57 +0000)
commita4559bd612c25561bbd3e4f4959ac3fdbb767fb3
tree2ccc652ecf3e09342a68adf9762a78e524fada73
parentc65aadffa54ebea6123466e3396c997582c708bc
Fix Trac #1678; be more careful about catching and reporting exceptions in spliced TH monadic computations

Many of the new lines are comments to explain the slightly-convoluted
in which exceptions get propagated out of the Q monad.

This fixes Trac 1679; test is TH_runIO (as well as the exising TH_fail).

Please merge
compiler/typecheck/TcSplice.lhs