-
Notifications
You must be signed in to change notification settings - Fork 11
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
A more general monad for withResource
?
#30
Comments
I'd like some generalized versions, too. MonadMask can be another candidate. |
There exists https://hackage.haskell.org/package/unliftio-pool 🙂 |
Nice! Thanks! |
This should do the job:
Feel free to add it to the library (or steal it for another library). |
Thanks! It saved my day! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version 0.3.0.0 changed the type of
withResource
fromto
I'm not the biggest fan of
MonadBaseControl
, but it was nice to be able to dowithResource
in more general monad stacks. Would it be possible to bring something like that back? I think MonadUnliftIO is a nice candidate.P.S. Thanks for maintaining this library!
The text was updated successfully, but these errors were encountered: