-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Implement union types Gen
instance derivation
#9723
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
Conversation
903d790
to
659b148
Compare
Gen
instances derivationGen
instance derivation
8e98120
to
56cb63e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work! Just a minor comment
@@ -0,0 +1,65 @@ | |||
package zio.test.magnolia |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't read through the code too closely, but do we need this to be in the magnolia
package? Afaict we're not using magnolia here (or maybe we are and I missed it, in that case please ignore me)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're not using Magnolia here indeed. Where should I put this?
Did a quick research. DeriveGen
is a concept coming from zio-test-magnolia
module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kyri-petrou Any chance to get this merged, please? I need it at work
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I'm getting way too many github notifications and I missed this. Merging now :)
e4940b6
to
a3b2bcc
Compare
Implementation inspired by Caliban
See:
Schema
for union types (towards #1926) ghostdogpr/caliban#2215Usage example: