-
Notifications
You must be signed in to change notification settings - Fork 7
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
Remove elm-community/json-extra as a dependency of the generated code #68
Conversation
@@ -1878,6 +1878,39 @@ typeToDecoder type_ = | |||
CliMonad.todo "Bytes decoder not implemented yet" | |||
|
|||
|
|||
jsonDecodeAndMap : Elm.Declaration | |||
jsonDecodeAndMap = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried using Elm.Declaration.fn2
but the type annotation kept being generated as
Json.Decode.Decoder a -> Json.Decode.Decoder (a -> b) -> Json.Decode.Decoder value
when I used Elm.val "(|>)"
, and when I tried used an anonymous function instead running the codegen would hang indefinitely.
This felt like a fine compromise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's fine. Eventually we'll have @Janiczek's type inference and all these bugs will be lost in time, like tears in rain...
Resolves #63
Also updates some dependencies