Skip to content

Instantly share code, notes, and snippets.

@zeryx
Last active September 16, 2016 17:03
Show Gist options
  • Save zeryx/fe50388456d2615f17e118605a14842d to your computer and use it in GitHub Desktop.
Save zeryx/fe50388456d2615f17e118605a14842d to your computer and use it in GitHub Desktop.
def apply(input: String): JsonElement = {
input.decodeOption match {
case Some(q: Question) => {
???
}
case Some(r: Respond) => {
???
}
case Some(b: Batch) => {
???
}
case _ => println(s"failed to parse")
}
}
Error:(14, 11) diverging implicit expansion for type argonaut.DecodeJson[X]
starting with method NonEmptyListDecodeJson in trait DecodeJsons
input.decodeOption match {
Error:(14, 11) not enough arguments for method decodeOption: (implicit evidence$6: argonaut.DecodeJson[X])Option[X].
Unspecified value parameter evidence$6.
input.decodeOption match {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment