Skip to content

feat: Add provide* combinators to Http and HttpResult #261

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

Closed
wants to merge 14 commits into from

Conversation

frekw
Copy link
Contributor

@frekw frekw commented Jun 14, 2021

This follows up on the work done in #189 and instead adds the provide* combinators to the HttpResult.

I also added all of the combinators to Http itself, just acting as wrappers on top.

@frekw frekw changed the title feat: Add provide* combinators to HttpResult feat: Add provide* combinators to Http and HttpResult Jun 14, 2021
@frekw frekw force-pushed the feat/provide-combinators branch 2 times, most recently from 7530e89 to 089a810 Compare June 18, 2021 09:15
@frekw
Copy link
Contributor Author

frekw commented Jun 18, 2021

@tusharmath I updated this to be based on #265. I've removed provideSomeLayer and provideCustomLayer because they were giving me too much of a headache due to missing evidence for R <: Has[_] in evaluate. I also think these combinators are quite valuable in themselves.

However, as with the code in #265 we're still seeing exhaustivity warnings in Scala3 (that I believe are false) but am unsure how to work around them. Will ask around a bit on the Scala gitter.

@frekw
Copy link
Contributor Author

frekw commented Jun 18, 2021

Could potentially be scala/scala3#9682 that we're running into.

@frekw frekw force-pushed the feat/provide-combinators branch from 53ef9c1 to 2418247 Compare July 12, 2021 12:26
@tusharmath
Copy link
Collaborator

fixed in #364

@tusharmath tusharmath closed this Sep 28, 2021
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

Successfully merging this pull request may close these issues.

2 participants