Skip to content
Snippets Groups Projects
Commit 7ca0d108 authored by Jens Nolte's avatar Jens Nolte
Browse files

Remove operator sections with forall for GHC 9.2.1

parent d98816a4
No related branches found
No related tags found
No related merge requests found
Pipeline #2496 passed
...@@ -89,7 +89,7 @@ instance {-# OVERLAPPABLE #-} MonadAsync m => MonadAsync (ReaderT r m) where ...@@ -89,7 +89,7 @@ instance {-# OVERLAPPABLE #-} MonadAsync m => MonadAsync (ReaderT r m) where
-- --
-- TODO change signature to `Awaitable` -- TODO change signature to `Awaitable`
async :: MonadAsync m => (forall f. MonadAsync f => f a) -> m (Awaitable a) async :: MonadAsync m => (forall f. MonadAsync f => f a) -> m (Awaitable a)
async action = asyncWithUnmask ($ action) async action = asyncWithUnmask \unmask -> unmask action
asyncWithUnmask :: MonadAsync m => (forall f. MonadAsync f => (forall a. f a -> f a) -> f r) -> m (Awaitable r) asyncWithUnmask :: MonadAsync m => (forall f. MonadAsync f => (forall a. f a -> f a) -> f r) -> m (Awaitable r)
asyncWithUnmask action = do asyncWithUnmask action = do
...@@ -113,7 +113,7 @@ runUnlimitedAsync action = do ...@@ -113,7 +113,7 @@ runUnlimitedAsync action = do
forkTask :: MonadIO m => IO a -> m (Task a) forkTask :: MonadIO m => IO a -> m (Task a)
forkTask action = forkTaskWithUnmask ($ action) forkTask action = forkTaskWithUnmask \unmask -> unmask action
forkTask_ :: MonadIO m => IO () -> m Disposable forkTask_ :: MonadIO m => IO () -> m Disposable
forkTask_ action = toDisposable <$> forkTask action forkTask_ action = toDisposable <$> forkTask action
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment