@@ -1,6 +1,5 @@
11module Main (main) where
22
3−import Control.Concurrent.Async.Lifted
43import Control.Monad.IO.Class
54import Test.Tasty
65import Test.Tasty.HUnit
@@ -20,7 +19,6 @@ main = defaultMain $ testGroup "effectful"
2019 , testCase "stateM" test_stateM
2120 , testCase "deep stack" test_deepStack
2221 , testCase "exceptions" test_exceptions
23− , testCase "concurrency" test_concurrentState
2422 , testCase "local effects" test_localEffects
2523 ]
2624 ]
@@ -89,22 +87,6 @@ test_exceptions = runIOE $ do
8987 _ <- E.throwM Ex
9088 modify @Int (+2)
9189
92−test_concurrentState :: Assertion
93−test_concurrentState = runIOE . runHasInt x $ do
94− replicateConcurrently_ 2 $ do
95− r <- goDownward 0
96− assertEqual_ "x = n" x r
97− where
98− x :: Int
99− x = 1000000
100−
101− goDownward :: HasInt :> es => Int -> Eff es Int
102− goDownward acc = getInt >>= \case
103− 0 -> pure acc
104− n -> do
105− putInt $ n - 1
106− goDownward $ acc + 1
107−
10890test_localEffects :: Assertion
10991test_localEffects = runIOE $ do
11092 x <- runHasInt 0 $ do