on master help sign in
Update the error about running Eff computations in a different thread
120ac9dAndrzej Rybczak
src/Effectful/Internal/Monad.hs+2−3
@@ -84,9 +84,8 @@ unsafeUnliftEff f = unsafeEff $ \es -> do
84 tid <- myThreadId
84 tid <- myThreadId
85 if tid == tid0
85 if tid == tid0
86 then m es
86 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"
90
89
91----------------------------------------
90----------------------------------------
92-- Base
91-- Base