You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 21, 2018. It is now read-only.
import rapture.json.{Json, _}
case class Foo(value:Map[Int,Int])
case class Bar(foos:Seq[Foo])
class Test(implicit ast:JsonAst) {
val myBar = Bar(List(Foo(Map(1->1))))
//implicit val ser = implicitly[Serializer[Foo,Json]]
Json(myBar)
}
but removing the commented implicit solves the error. The error for scala 2.10 doesn't help much:
Cannot serialize type com.example.Bar to rapture.json.Json. Please provide an implicit Serializer of type com.example.Bar.
However using 2.11 we get:
diverging implicit expansion for type rapture.json.Serializer[com.example.Bar,rapture.json.Json]
this leads me to suspect a problem related to the Map[Int,Int] - Maybe there are different strategies for maps that use keys other than String?
The text was updated successfully, but these errors were encountered:
the following code does not compile:
but removing the commented implicit solves the error. The error for scala 2.10 doesn't help much:
Cannot serialize type com.example.Bar to rapture.json.Json. Please provide an implicit Serializer of type com.example.Bar.
However using 2.11 we get:
diverging implicit expansion for type rapture.json.Serializer[com.example.Bar,rapture.json.Json]
this leads me to suspect a problem related to the Map[Int,Int] - Maybe there are different strategies for maps that use keys other than String?
The text was updated successfully, but these errors were encountered: