-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Useless compile error while lacking encoder/decoder #35
Comments
Yeah, that's a pretty terrible error message—thanks for pointing it out. The implementation of the generic derivation mechanism will be changing with #30, which I'm hoping to get done tomorrow, so after that dust settles I'll revisit this and #34, since things might be a little different by then. We should be able to use |
+1 to use implicitNotFound ! implicit val dateTimeEncoder: Encoder[DateTime] = Encoder.instance(a => a.getMillis.asJson)
implicit val dateTimeDecoder: Decoder[DateTime] = Decoder.instance(a => a.as[Long].map(new DateTime(_))) Because of date has many format, I suggest that defined it in the documention and don't add a default format in the jfc. |
I'm going to go ahead and close this since the following is a huge improvement: <console>:59: error: could not find implicit value for parameter e: io.circe.Encoder[Foo]
println(f.asJson.noSpaces)
^ I'm not actually sure there's much additional useful information we could add with |
…ling Issue with decoding longs in argonaut support
If there is no encode for date, then compiler complains
The text was updated successfully, but these errors were encountered: