@@ -54,7 +54,7 @@ type role Eff nominal representational
5454
5555newtype Eff (es :: [Effect]) a = Eff (Env es -> IO a)
5656
57−-- | Run a pure 'Eff' computation.
57+-- | Run a pure 'Eff' operation.
5858--
5959-- For the impure version see 'runIOE'.
6060runEff :: Eff '[] a -> a
@@ -82,11 +82,11 @@ unsafeEff m = Eff (oneShot m)
8282unsafeEff_ :: IO a -> Eff es a
8383unsafeEff_ m = unsafeEff $ \_ -> m
8484
85−-- | A function that runs 'Eff' computations in @m@ (usually a local 'Eff'
85+-- | A function that runs 'Eff' operations in @m@ (usually a local 'Eff'
8686-- environment or 'IO').
8787type RunIn es m = forall r. Eff es r -> m r
8888
89−-- | Lower 'Eff' computations into 'IO'.
89+-- | Lower 'Eff' operations into 'IO'.
9090--
9191-- /Note:/ the 'RunIn' argument has to be called from the same thread as
9292-- 'unsafeUnliftEff' ('liftBaseWith' / 'withRunInIO'). Attempting otherwise
@@ -114,8 +114,8 @@ unsafeUnliftEff f = unsafeEff $ \es -> do
114114 tid <- myThreadId
115115 if tid == tid0
116116 then unEff m es
117− else error $ "Running Eff computations in a different thread is "
118− ++ "currently only possible via the AsyncE effect"
117+ else error $ "Running Eff operations in a different thread is "
118+ ++ "currently not possible with the unlifting function"
119119
120120----------------------------------------
121121-- Base
@@ -171,10 +171,12 @@ instance MonadMask (Eff es) where
171171----------------------------------------
172172-- IO
173173
174+-- | Run 'IO' operations via 'MonadIO', 'MonadBaseControl' 'IO' and
175+-- 'MonadUnliftIO' classes.
174176data IOE :: Effect where
175177 IOE :: IOE m r
176178
177−-- | Run an impure 'Eff' computation.
179+-- | Run an impure 'Eff' operation.
178180--
179181-- For the pure version see 'runEff'.
180182runIOE :: Eff '[IOE] a -> IO a