All Downloads are FREE. Search and download functionalities are using the official Maven repository.

plotly.internals.ArgonautCodecsExtra.scala Maven / Gradle / Ivy

There is a newer version: 0.7.4
Show newest version
package plotly.internals

import argonaut.{DecodeJson, EncodeJson}

trait ArgonautCodecsExtra {

  implicit def seqEncoder[T: EncodeJson]: EncodeJson[Seq[T]] =
    EncodeJson.of[Vector[T]].contramap(_.toVector)
  implicit def seqDecoder[T: DecodeJson]: DecodeJson[Seq[T]] =
    DecodeJson.of[Vector[T]].map(x => x)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy