I’m interested in trying to support Scala3 in GitHub - kontainers/PureCSV: A type-safe and boilerplate-free CSV library for Scala.
One of the things I need to do is to convert a case class into a Seq[String] by calling StringConverter instances that are declared as implicits. In Scala 2, this works with shapeless features that don’t appear in shapeless3.
The current code converts the case class to a HList and I’m trying to use a Scala 3 Tuple instead.
In this scastie example - I can get the implicit to work when accessing a specific element in the tuple. If I try to iterate using a Tuple.map or a for comprehension, the compiler cannot match the implicits.
Does anyone have any ideas how this can be fixed?