-
Notifications
You must be signed in to change notification settings - Fork 2
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
Recursive override #3
Comments
It might be possible, but it's not currently implemented. I'd also be concerned with how unpredictable it might be. If one of the nested records does not have a Generic instance, should recursive override fail to compile? Should it succeed but ignore that record? There are likely lots of questions and edge cases that need to be accounted for first. I am open to suggestions and PRs, although for the latter it's better to discuss the approach first. |
Is it possible to override
ToJSON
for all fields in nested records?ghci:
I want
x
to become zero too.The text was updated successfully, but these errors were encountered: