summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-api/downsweep/PartialDownsweep.hs
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/ghc-api/downsweep/PartialDownsweep.hs')
-rw-r--r--testsuite/tests/ghc-api/downsweep/PartialDownsweep.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/testsuite/tests/ghc-api/downsweep/PartialDownsweep.hs b/testsuite/tests/ghc-api/downsweep/PartialDownsweep.hs
index b0c6ce2761..7c782c9167 100644
--- a/testsuite/tests/ghc-api/downsweep/PartialDownsweep.hs
+++ b/testsuite/tests/ghc-api/downsweep/PartialDownsweep.hs
@@ -7,10 +7,11 @@ import GHC
import GHC.Driver.Make
import GHC.Driver.Session
import GHC.Utils.Outputable
-import GHC.Utils.Exception (ExceptionMonad, ghandle)
+import GHC.Utils.Exception (ExceptionMonad)
import GHC.Data.Bag
import Control.Monad
+import Control.Monad.Catch as MC (handle)
import Control.Monad.IO.Class (liftIO)
import Control.Exception
import Data.IORef
@@ -28,8 +29,8 @@ any_failed = unsafePerformIO $ newIORef False
it :: ExceptionMonad m => [Char] -> m Bool -> m ()
it msg act =
- ghandle (\(_ex :: AssertionFailed) -> dofail) $
- ghandle (\(_ex :: ExitCode) -> dofail) $ do
+ MC.handle (\(_ex :: AssertionFailed) -> dofail) $
+ MC.handle (\(_ex :: ExitCode) -> dofail) $ do
res <- act
case res of
False -> dofail