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

org.virtuslab.yaml.YamlCodecCrossCompat.scala Maven / Gradle / Ivy

The newest version!
package org.virtuslab.yaml

import scala.deriving.Mirror

private[yaml] trait YamlCodecCompanionCrossCompat {

  def make[A](implicit decoder: YamlDecoder[A], encoder: YamlEncoder[A]): YamlCodec[A]

  inline def derived[T](using m: Mirror.Of[T]): YamlCodec[T] =
    val decoder = YamlDecoder.derived[T]
    val encoder = YamlEncoder.derived[T]
    make(decoder, encoder)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy