Skip to content

Fix NPE in Scala 3 derivation for Write #1890

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

Merged
merged 3 commits into from
Jul 7, 2023

Conversation

jacektomaszek
Copy link
Contributor

@jacektomaszek jacektomaszek commented Jul 6, 2023

#1816 fixed NPE for Read instances, but bug persisted for Write instances.

@jatcwang mentioned that recursive definitions for Read do not exist, if that's also the case for Write we can make the same change as in #1816 but for Write.

5d52836 commit introduces test that succeeds for Read, but fails for Write. Next commit introduces the mentioned change that makes the Write test also pass.

@mergify mergify bot added the core label Jul 6, 2023

And find the missing instance and construct it as needed. Refer to Chapter 12
of the book of doobie for more information.
""")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is amazing. Thank you! 💯

@jatcwang
Copy link
Collaborator

jatcwang commented Jul 7, 2023

Oopsie my bad I should've fixed Write too. Thanks for this!

@jatcwang jatcwang merged commit 32838f9 into typelevel:main Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants