@@ -50,7 +50,7 @@ test_deepStack = runIOE $ do
5050 U.assertEqual "n" 15 n
5151
5252test_exceptions :: Assertion
53−test_exceptions = runIOE . runExcept $ do
53+test_exceptions = runIOE $ do
5454 testTry "exceptions" E.try
5555 testCatch "exceptions" E.catch
5656 testTry "lifted-base" LE.try
@@ -60,8 +60,8 @@ test_exceptions = runIOE . runExcept $ do
6060 where
6161 testTry
6262 :: String
63− -> (forall a es. (IOE :> es, Except :> es) => Eff es a -> Eff es (Either U.Ex a))
64− -> Eff '[Except, IOE] ()
63+ -> (forall a es. IOE :> es => Eff es a -> Eff es (Either U.Ex a))
64+ -> Eff '[IOE] ()
6565 testTry lib tryImpl = do
6666 e <- tryImpl $ runState (0::Int) action
6767 U.assertEqual (lib ++ " - exception caught") e (Left U.Ex)
@@ -70,15 +70,15 @@ test_exceptions = runIOE . runExcept $ do
7070
7171 testCatch
7272 :: String
73− -> (forall a es. (IOE :> es, Except :> es) => Eff es a -> (U.Ex -> Eff es a) -> Eff es a)
74− -> Eff '[Except, IOE] ()
73+ -> (forall a es. IOE :> es => Eff es a -> (U.Ex -> Eff es a) -> Eff es a)
74+ -> Eff '[IOE] ()
7575 testCatch lib catchImpl = do
7676 s <- execState (0::Int) $ do
7777 _ <- (evalState () action) `catchImpl` \U.Ex -> modify @Int (+4)
7878 modify @Int (+8)
7979 U.assertEqual (lib ++ " - state correctly updated") s 13
8080
81− action :: (State Int :> es, Except :> es) => Eff es ()
81+ action :: State Int :> es => Eff es ()
8282 action = do
8383 modify @Int (+1)
8484 _ <- E.throwM U.Ex