Skip to content
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

Enable support for derives in Scala 3 for Read, Write and Text #1594

Merged
merged 1 commit into from
Dec 10, 2021

Conversation

oyvindberg
Copy link
Contributor

@oyvindberg oyvindberg commented Nov 16, 2021

In order for this keyword to work, there needs to be a derived method available in the companion objects. This gives some of the givens the expected name.

This is what it looks like without this patch:

[error] -- [E008] Not Found Error: /home/.../doobie/modules/core/src/test/scala-3/doobie/util/ReadSuitePlatform.scala:25:51 
[error] 25 |    case class Foo(a: String, b: Int) derives util.Read
[error]    |                                                   ^
[error]    |value derived is not a member of object doobie.util.Read, but could be made available as an extension method.
[error]    |
[error]    |The following import might make progress towards fixing the problem:
[error]    |
[error]    |  import munit.Clue.generate
[error]    |
[error] one error found

@jatcwang jatcwang self-requested a review November 17, 2021 11:10
@jatcwang
Copy link
Collaborator

Thanks @oyvindberg!

@jatcwang jatcwang merged commit aa68012 into typelevel:main Dec 10, 2021
@oyvindberg oyvindberg deleted the enable-derives-for-scala-3 branch December 10, 2021 16:23
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