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

Add Scala 3 #272

Merged
merged 5 commits into from
Dec 8, 2023
Merged

Add Scala 3 #272

merged 5 commits into from
Dec 8, 2023

Conversation

nafg
Copy link
Owner

@nafg nafg commented Jul 10, 2023

No description provided.

@nafg nafg force-pushed the Add-Scala-3 branch 2 times, most recently from 1342ce6 to 2b7fe82 Compare August 21, 2023 21:02
@nafg nafg marked this pull request as draft October 16, 2023 17:41
@nafg nafg force-pushed the Add-Scala-3 branch 4 times, most recently from 71f284d to a29a33f Compare October 16, 2023 18:04
@nafg nafg marked this pull request as ready for review December 6, 2023 06:41
@nafg nafg marked this pull request as draft December 6, 2023 06:42
@nafg nafg force-pushed the Add-Scala-3 branch 5 times, most recently from 1efee8d to 1a02a92 Compare December 8, 2023 09:22
CirceJsonCodecModels and MonocleLensesModels are removed from CodeGeneration
@nafg
Copy link
Owner Author

nafg commented Dec 8, 2023

It seems on scala 3 <> doesn't work with a single-field case class. The following fixes it for now:

  implicit def fix[A, B](implicit toTuple: ToTuple[A, B *: EmptyTuple]): ToTuple[A, B] =
    a => toTuple(a).map(_.head)

@nafg nafg marked this pull request as ready for review December 8, 2023 20:37
@nafg nafg merged commit 670bc84 into master Dec 8, 2023
9 checks passed
@nafg nafg deleted the Add-Scala-3 branch December 8, 2023 20:38
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.

None yet

1 participant