@@ -120,7 +120,7 @@ localSeqUnlift
120 -- ^ Continuation with the unlifting function in scope.
120 -- ^ Continuation with the unlifting function in scope.
121 -> Eff es a
121 -> Eff es a
122localSeqUnlift (LocalEnv les) k = unsafeEff $ \es -> do
122localSeqUnlift (LocalEnv les) k = unsafeEff $ \es -> do
123− unsafeSeqUnliftEff les $ \unlift -> do
123+ seqUnliftEff les $ \unlift -> do
124 (`unEff` es) $ k $ unsafeEff_ . unlift
124 (`unEff` es) $ k $ unsafeEff_ . unlift
126-- | Create a local unlifting function with the 'SeqUnlift' strategy. For the
126-- | Create a local unlifting function with the 'SeqUnlift' strategy. For the
@@ -132,7 +132,7 @@ localSeqUnliftIO
132 -> ((forall r. Eff localEs r -> IO r) -> IO a)
132 -> ((forall r. Eff localEs r -> IO r) -> IO a)
133 -- ^ Continuation with the unlifting function in scope.
133 -- ^ Continuation with the unlifting function in scope.
134 -> Eff es a
134 -> Eff es a
135−localSeqUnliftIO (LocalEnv les) k = liftIO $ unsafeSeqUnliftEff les k
135+localSeqUnliftIO (LocalEnv les) k = liftIO $ seqUnliftEff les k
137-- | Create a local unlifting function with the given strategy.
137-- | Create a local unlifting function with the given strategy.
138localUnlift
138localUnlift
@@ -145,10 +145,10 @@ localUnlift
145 -> Eff es a
145 -> Eff es a
146localUnlift (LocalEnv les) strategy k = case strategy of
146localUnlift (LocalEnv les) strategy k = case strategy of
147 SeqUnlift -> unsafeEff $ \es -> do
147 SeqUnlift -> unsafeEff $ \es -> do
148− unsafeSeqUnliftEff les $ \unlift -> do
148+ seqUnliftEff les $ \unlift -> do
149 (`unEff` es) $ k $ unsafeEff_ . unlift
149 (`unEff` es) $ k $ unsafeEff_ . unlift
150 ConcUnlift p l -> unsafeEff $ \es -> do
150 ConcUnlift p l -> unsafeEff $ \es -> do
151− unsafeConcUnliftEff les p l $ \unlift -> do
151+ concUnliftEff les p l $ \unlift -> do
152 (`unEff` es) $ k $ unsafeEff_ . unlift
152 (`unEff` es) $ k $ unsafeEff_ . unlift
154-- | Create a local unlifting function with the given strategy.
154-- | Create a local unlifting function with the given strategy.
@@ -161,8 +161,8 @@ localUnliftIO
161 -- ^ Continuation with the unlifting function in scope.
161 -- ^ Continuation with the unlifting function in scope.
162 -> Eff es a
162 -> Eff es a
163localUnliftIO (LocalEnv les) strategy k = case strategy of
163localUnliftIO (LocalEnv les) strategy k = case strategy of
164− SeqUnlift -> liftIO $ unsafeSeqUnliftEff les k
164+ SeqUnlift -> liftIO $ seqUnliftEff les k
165− ConcUnlift p l -> liftIO $ unsafeConcUnliftEff les p l k
165+ ConcUnlift p l -> liftIO $ concUnliftEff les p l k
167-- | Utility for lifting 'Eff' operations of type
167-- | Utility for lifting 'Eff' operations of type
@@ -181,7 +181,7 @@ withLiftMap
181 -> Eff es r
181 -> Eff es r
182withLiftMap k = unsafeEff $ \es -> do
182withLiftMap k = unsafeEff $ \es -> do
183 (`unEff` es) $ k $ \mapEff m -> unsafeEff $ \localEs -> do
183 (`unEff` es) $ k $ \mapEff m -> unsafeEff $ \localEs -> do
184− unsafeSeqUnliftEff localEs $ \unlift -> do
184+ seqUnliftEff localEs $ \unlift -> do
185 (`unEff` es) . mapEff . liftIO $ unlift m
185 (`unEff` es) . mapEff . liftIO $ unlift m
187-- | Utility for lifting 'IO' operations of type
187-- | Utility for lifting 'IO' operations of type
@@ -215,7 +215,7 @@ withLiftMapIO
215 -- ^ Continuation with the lifting function in scope.
215 -- ^ Continuation with the lifting function in scope.
216 -> Eff es r
216 -> Eff es r
217withLiftMapIO k = k $ \mapIO m -> unsafeEff $ \es -> do
217withLiftMapIO k = k $ \mapIO m -> unsafeEff $ \es -> do
218− unsafeSeqUnliftEff es $ \unlift -> mapIO $ unlift m
218+ seqUnliftEff es $ \unlift -> mapIO $ unlift m
220----------------------------------------
220----------------------------------------
221-- Bidirectional lifts
221-- Bidirectional lifts
@@ -237,12 +237,12 @@ localLiftUnlift
237 -> Eff es a
237 -> Eff es a
238localLiftUnlift (LocalEnv les) strategy k = case strategy of
238localLiftUnlift (LocalEnv les) strategy k = case strategy of
239 SeqUnlift -> unsafeEff $ \es -> do
239 SeqUnlift -> unsafeEff $ \es -> do
240− unsafeSeqUnliftEff es $ \unliftEs -> do
240+ seqUnliftEff es $ \unliftEs -> do
241− unsafeSeqUnliftEff les $ \unliftLocalEs -> do
241+ seqUnliftEff les $ \unliftLocalEs -> do
242 (`unEff` es) $ k (unsafeEff_ . unliftEs) (liftIO . unliftLocalEs)
242 (`unEff` es) $ k (unsafeEff_ . unliftEs) (liftIO . unliftLocalEs)
243 ConcUnlift p l -> unsafeEff $ \es -> do
243 ConcUnlift p l -> unsafeEff $ \es -> do
244− unsafeConcUnliftEff es p l $ \unliftEs -> do
244+ concUnliftEff es p l $ \unliftEs -> do
245− unsafeConcUnliftEff les p l $ \unliftLocalEs -> do
245+ concUnliftEff les p l $ \unliftLocalEs -> do
246 (`unEff` es) $ k (unsafeEff_ . unliftEs) (liftIO . unliftLocalEs)
246 (`unEff` es) $ k (unsafeEff_ . unliftEs) (liftIO . unliftLocalEs)
248-- | Create a local unlifting function with the given strategy along with an
248-- | Create a local unlifting function with the given strategy along with an
@@ -262,8 +262,8 @@ localLiftUnliftIO
262 -- ^ Continuation with the lifting and unlifting function in scope.
262 -- ^ Continuation with the lifting and unlifting function in scope.
263 -> Eff es a
263 -> Eff es a
264localLiftUnliftIO (LocalEnv les) strategy k = case strategy of
264localLiftUnliftIO (LocalEnv les) strategy k = case strategy of
265− SeqUnlift -> liftIO $ unsafeSeqUnliftEff les $ k unsafeEff_
265+ SeqUnlift -> liftIO $ seqUnliftEff les $ k unsafeEff_
266− ConcUnlift p l -> liftIO $ unsafeConcUnliftEff les p l $ k unsafeEff_
266+ ConcUnlift p l -> liftIO $ concUnliftEff les p l $ k unsafeEff_
269-- >>> import Control.Concurrent
269-- >>> import Control.Concurrent