These are chat archives for nrinaudo/kantan.csv
case class Foo(f1: Int, f2: Int, f3....) // => case class Bar(f1: Int, f2: Int) case class Foo(bar: Bar, f2....)
final case class Company(name: String, address: Address) final case class Claimant(name: String, age: Int) final case class Claim(claimant: Claimant, company: Company) implicit val claimDecoder: Decoder[Claim] = ...
StringConverteris working at the cell level.
StringConverterworks on a cell - it lets you tell purecsv how to turn a CSV cell into an
Int, say, or an
Option[IP]. It looks like
RawFieldsConverteris what's used to work on entire rows of data
RawFieldsConverterinstance, although if you have 150 flat fields in a case class, it's probably going to be better for your carpal syndrom to let shapeless derive it