无法编译简单的Argonaut表达式?

时间:2016-08-08 11:47:06

标签: scala argonaut

这是Scalaz和Argonaut不兼容的问题还是其他问题?

scala> import argonaut._
import argonaut._

scala> import Argonaut._
import Argonaut._

scala> import scalaz._
import scalaz._

scala> import Scalaz._
import Scalaz._

scala> val jsonString: Json = jString("JSON!")
java.lang.IncompatibleClassChangeError: Found class scalaz.Memo, but interface was expected
  at argonaut.PrettyParams.<init>(PrettyParams.scala:112)
  at argonaut.PrettyParamss$class.$init$(PrettyParams.scala:252)
  at argonaut.Argonaut$.<init>(Argonaut.scala:3)
  at argonaut.Argonaut$.<clinit>(Argonaut.scala)
  ... 43 elided

build.sbt

  "io.argonaut" %% "argonaut" % "6.1",
  "org.scalaz" %% "scalaz-core" % "7.2.4",

1 个答案:

答案 0 :(得分:0)

目前似乎只与Scalaz 7.1.1兼容。