【发布时间】:2017-08-21 14:02:32
【问题描述】:
将 circe 从 0.4.1 升级到 0.7.0 破坏了以下代码:
import shapeless._
import syntax.singleton._
import io.circe.generic.auto._
.run[Record.`'transaction_id -> Int`.T](transport)
def run[A](transport: Json => Future[Json])(implicit decoder: Decoder[A], exec: ExecutionContext): Future[A]
出现以下错误:
could not find implicit value for parameter decoder: io.circe.Decoder[shapeless.::[Int with shapeless.labelled.KeyTag[Symbol with shapeless.tag.Tagged[String("transaction_id")],Int],shapeless.HNil]]
[error] .run[Record.`'transaction_id -> Int`.T](transport)
[error] ^
我是否在这里遗漏了一些导入,或者这些编码器/解码器在 circe 中不再可用?
【问题讨论】: