Last active
October 10, 2018 10:57
-
-
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]
This file contains 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 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