Update the error about running Eff computations in a different thread
commit120ac9d1548e7600e240e6a32af2af7ccc4b4b6a
authorAndrzej Rybczak <andrzej@rybczak.net>
dateSat 26 Jun 2021, 00:11 (5 years ago)
parent2681dce
src/Effectful/Internal/Monad.hs+2−3
@@ -84,9 +84,8 @@ unsafeUnliftEff f = unsafeEff $ \es -> do
8484 tid <- myThreadId
8585 if tid == tid0
8686 then m es
87− else do
88− -- TODO: Add Fork and Async effect.
89− error "Running computations in a different thread is not supported yet"
87+ else error $ "Running Eff computations in a different thread is "
88+ ++ "currently only possible via the AsyncE effect"
9089
9190----------------------------------------
9291-- Base