-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Compile error with PlayJson macro and cats.data.Newtype
(via NonEmptySet)
#2582
Comments
try write |
I changed to:
Same compile error. |
looks like that play.json's Json.format macro failed to pick up the implicit instance in scope. As a last attempt, try create a type alias for NonEmptySet[String] and explicitly create an implicit format for that type alias, and use that type alias in the case class. if that still doesn't work, you might need to manually create a Format for your case class using combinators. |
I changed to:
Same compile error. |
Thank you @kailuowang. The workaround using manual
|
This seems stale with nothing actionable to do in cats. Feel free to re-open. |
A minimal failing snippet:
build.sbt
:NesPlayJson.scala
:Compile error:
Gitter:
The text was updated successfully, but these errors were encountered: