We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would be nice to see support for µPickle which looks like the following:
For case clasess:
import upickle.default.{ReadWriter => RW, macroRW} case class Thing(myFieldA: Int, myFieldB: String) object Thing{ implicit val rw: RW[Thing] = macroRW } case class Big(i: Int, b: Boolean, str: String, c: Char, t: Thing) object Big{ implicit val rw: RW[Big] = macroRW }
And for sealed traits:
sealed trait IntOrTuple object IntOrTuple{ implicit val rw: RW[IntOrTuple] = RW.merge(IntThing.rw, TupleThing.rw) } case class IntThing(i: Int) extends IntOrTuple object IntThing{ implicit val rw: RW[IntThing] = macroRW } case class TupleThing(name: String, t: (Int, Int)) extends IntOrTuple object TupleThing{ implicit val rw: RW[TupleThing] = macroRW }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Would be nice to see support for µPickle which looks like the following:
For case clasess:
And for sealed traits:
The text was updated successfully, but these errors were encountered: