In a recent project I encountered a problem where the generated API code for an endpoint which returned an (Either [String] Identifier) was being compiled to:
, expect = jsonDec(Either (List String) Identifier)
which fails to compile. This pull request changes the output in this case to:
Hi!
First off: I'm a huge fan of this library.
In a recent project I encountered a problem where the generated API code for an endpoint which returned an (Either [String] Identifier) was being compiled to:
, expect = jsonDec(Either (List String) Identifier)
which fails to compile. This pull request changes the output in this case to:, expect = Http.expectJson toMsg ((jsonDecEither (Json.Decode.list (Json.Decode.string))) jsonDecIdentifier)
which matches with the generated decoder.
I built the repo referenced in #58 both as-is and using the changes from this repo and the compilation issue there seems to have gone away.