RowDecoderInstances

kantan.csv.RowDecoderInstances

Provides reasonable default RowDecoder instances for various types.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object codecs

Members list

Implicits

Implicits

implicit def fromCellDecoder[A : CellDecoder]: RowDecoder[A]

Turns a CellDecoder into a RowDecoder, for rows that contain a single value.

Turns a CellDecoder into a RowDecoder, for rows that contain a single value.

This provides default behaviour for RowDecoder.field by decoding the first cell.

Attributes

Example
RowDecoder[Int].decode(Seq("123", "456", "789"))
res1: DecodeResult[Int] = Right(123)
implicit def hasBuilderRowDecoder[A : CellDecoder, F[_]](implicit evidence$1: CellDecoder[A], hb: Factory[A, F[A]]): RowDecoder[F[A]]

Provides a RowDecoder instance for all types that have an Factory, provided the inner type has a CellDecoder.

Provides a RowDecoder instance for all types that have an Factory, provided the inner type has a CellDecoder.

Attributes

Example
RowDecoder[List[Int]].decode(Seq("123", "456", "789"))
res1: DecodeResult[List[Int]] = Right(List(123, 456, 789))