ποΈ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed trait json | |
final case class jsString(get: String) extends json | |
final case class jsObject(get: Map[String, json]) extends json | |
final case class jsNumber(get: Double) extends json | |
case object jsNull extends json | |
trait JsonWriter[A] { | |
def write(value: A): json | |
} |
OlderNewer