-
Notifications
You must be signed in to change notification settings - Fork 396
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
Update Alternator
and perhaps others to include implicits for scala 3 type updates
#3125
Comments
Another place that comes to mind is using tuples and |
I was already planning for some Scala 3 extensions. I don't think I would change Also, having for the same ops different return types in different Scala versions feels not so clean to me. |
Is there work started for this at all? I wouldn't mind taking a stab at pushing that over the finish line, feels like a good first ZIO contribution! |
/bounty $450 for Scala 3-specific composition variants for any of the Endpoint methods that currently use |
💎 $450 bounty • ZIOSteps to solve:
Thank you for contributing to zio/zio-http! Add a bounty • Share on socials
|
/attempt #3125
|
💡 @987Nabil submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
Is this issue open, I would like to have a go at it if it's open. Thank you |
Is your feature request related to a problem? Please describe.
I am trying to create an
Endpoint
with multiple output error possibilities, and was hoping the combined error type would end up being a union type, but it looks like the implicitAlternator
being used results inEither
being used instead.Alternator
is sealed, so adding my own, while a simple implementation, is not possible.Describe the solution you'd like
I would like an
Alternator
instance that combines types using union types instead of nestingEither
s.Describe alternatives you've considered
None, just living with nested
Either
sAdditional context
should be as simple as:
I'm wondering if there are other places where converting to union types over either's, or other scala 3 type updates in general, could be useful
The text was updated successfully, but these errors were encountered: