How to access parameter list of case class in a dotty macro
Using standard type class derivation in Dotty import scala.deriving.Mirror case class ParseError(str: String, msg: String) trait Decoder[T]{ def decode(str:String): Either[ParseError, T] } object Decoder { given Decoder[String] with { override def decode(str: String): Either[ParseError, String] = Right(str) } given Decoder[Int] with { override def decode(str: String): Either[ParseError, Int] = str.toIntOption.toRight(ParseError(str, “value is not valid Int”)) … Read more