Skip to content
Snippets Groups Projects
Commit 3e5c9e3c authored by Ben Gamari's avatar Ben Gamari
Browse files

compiler/tc: Use toException instead of SomeException

parent 3bbd2bf2
No related branches found
No related tags found
No related merge requests found
......@@ -123,7 +123,7 @@ import GHC.Utils.Panic as Panic
import GHC.Utils.Lexeme
import GHC.Utils.Outputable
import GHC.Utils.Logger
import GHC.Utils.Exception (throwIO, ErrorCall(..), SomeException(..))
import GHC.Utils.Exception (throwIO, ErrorCall(..))
import GHC.Utils.TmpFs ( newTempName, TempFileLifetime(..) )
......@@ -1269,7 +1269,7 @@ runMeta' show_code ppr_hs run_and_convert expr
fail_with_exn phase exn = do
exn_msg <- liftIO $ Panic.safeShowException exn
failWithTc $ TcRnTHError $ THSpliceFailed $
SpliceThrewException phase (SomeException exn) exn_msg expr show_code
SpliceThrewException phase (toException exn) exn_msg expr show_code
{-
Note [Running typed splices in the zonker]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment