-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes to compile on ghc-8.10.1 #572
Fixes to compile on ghc-8.10.1 #572
Conversation
@@ -249,8 +249,7 @@ instance MonadBaseControl b m => MonadBaseControl b (AWST' r m) where | |||
restoreM = defaultRestoreM | |||
|
|||
instance MonadUnliftIO m => MonadUnliftIO (AWST' r m) where | |||
askUnliftIO = AWST' $ (\(UnliftIO f) -> UnliftIO $ f . unAWST) | |||
<$> askUnliftIO | |||
withRunInIO inner = (AWST' $ (\(UnliftIO f) -> UnliftIO $ f . unAWST) <$> askUnliftIO) >>= \u -> liftIO (inner (unliftIO u)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Basically inlined the old definition of withRunInIO
: https://hackage.haskell.org/package/unliftio-core-0.1.2.0/docs/src/Control.Monad.IO.Unlift.html#withRunInIO
There may be a better way to write this.
If this works, I'd like a new release to support |
👍 |
Could we get a release to hackage with this merge? |
Another request for a release 🙏 |
|
haskell-src-exts
.