Skip to content
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

Parameterize effect type #77

Open
Dennis4b opened this issue Oct 2, 2018 · 1 comment
Open

Parameterize effect type #77

Dennis4b opened this issue Oct 2, 2018 · 1 comment

Comments

@Dennis4b
Copy link

Dennis4b commented Oct 2, 2018

Hi,
Love autowire, using it extensively.

My stack is mostly cats/IO based, doobie, http4s, and so on, and autowire would fit in more naturally (i.e. no unsafeToFuture calls or having to choose to return Int or Future[Int]) if I could make the server side generated code have a different effect type (i.e. the usual F[_], which for me would be cats.effect.IO).

I understand this may not be something you would want to spend any time on, but perhaps you/anyone could give your thoughts on the amount of surgery needed? I'd like to try it.

Note: PR #76 adds support for IO but by calling unsafeToFuture, I would like to avoid the Futures altogether.

Thank you!

@cornerman
Copy link
Contributor

I had the same problem and decided to write a similar library that does exactly that. Maybe it helps you, too: https://github.com/cornerman/sloth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants