-
Notifications
You must be signed in to change notification settings - Fork 78
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
supporting doobie #100
Comments
I think an a) It's fixed to Task, instead of an arbitrary catchable, suspendable monad as in doobie-fs2 proper (which I'm calling Feel free to open a PR though. |
Thanks, in that case I think I'm going to give it a shot (after addressing #98).
Yes, I'll make sure to use the same monad restrictions as in doobie-fs2.
Ah I see, you mean it's better to output directly (in this case) a
Yes, the |
Sure. Just so you know, you cannot do the last thing you mentioned. The effects may not commute over |
Started working on this, but won't be able to release it before the release of doobie 0.4.2 (0.4.1 does not contain the new |
This is merged into master now. |
Would you be interested in having support for Doobie effects (i.e.,
ConnectionIO
)? Or is this out of the scope of the project? I have been playing with this idea and currently have the below interpreter as a proof of concept (requiring as last effect on the taskTask
). It currently rewrites in terms ofmonix.eval.Task
but this would of course be generalized. The interpreter also handles errors, calling the configuredStrategy
ConnectionIO programs of the Doobie transactor, which are by default:before
(set autoCommit false)after
(commit)oops
(rollback)always
(connection close)The text was updated successfully, but these errors were encountered: