Skip to content

Instantly share code, notes, and snippets.

@kareblak
Last active October 10, 2018 10:57
Show Gist options
  • Save kareblak/d184379538e5cca36225b0e9036d0e65 to your computer and use it in GitHub Desktop.
Save kareblak/d184379538e5cca36225b0e9036d0e65 to your computer and use it in GitHub Desktop.
could not find Lazy implicit value of type io.circe.generic.extras.decoding.Configured(Decoder|Encoder)[A]
sealed trait T
object T {
object X {
case class T1(foo: String)
case class T2(bar: String)
}
}
import io.circe._
import io.circe.syntax._
import io.circe.generic.extras.Configuration
import io.circe.generic.extras.semiauto._
object Json {
implicit val config = Configuration.default
val decodeT: Decoder[T] =
deriveDecoder
val encodeT: Encoder[T] =
deriveEncoder
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment