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

gapt.formats.json.JsonExporter.scala Maven / Gradle / Ivy

The newest version!
package gapt.formats.json

import gapt.utils.Doc
import io.circe.Encoder

object JsonExporter {

  /**
   * Exports a value for which an Encoder exists to JSON.
   */
  def apply[A](x: A)(implicit ev: Encoder[A]): Doc = JsonToDoc(ev(x))
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy