Last active
September 16, 2016 17:03
-
-
Save zeryx/fe50388456d2615f17e118605a14842d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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