Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign updecoding recursive data from JSON hangs #665
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
process-bot
Jul 15, 2016
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
process-bot
commented
Jul 15, 2016
|
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it! Here is what to expect next, and if anyone wants to comment, keep these things in mind. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jvoigtlaender
Jul 15, 2016
Contributor
You already know about Json.Decode.Extra.lazy, otherwise I would have referred you to my response to a similar issue (https://github.com/elm-lang/core/issues/664) a few hours ago.
Given what you know, the best venue for your question would be a community forum, for example the mailing list. Please see http://elm-lang.org/community for various options.
This issue tracker is really for bugs or things that need change in core.
|
You already know about Given what you know, the best venue for your question would be a community forum, for example the mailing list. Please see http://elm-lang.org/community for various options. This issue tracker is really for bugs or things that need change in |
ContiGuy commentedJul 15, 2016
•
edited
Edited 1 time
-
ContiGuy
edited Jul 15, 2016 (most recent)
Hi, I'm trying to encode and decode a recursive data structure from Json. I have tried several ways to design my structure to be able to decode it from Json but it always hangs. I'm totally new to Elm and functional programming, so please forgive my ignorance.
record-with-indirect-recursive-union-hangs-on-json-decode.elm.txt
direct-recursive-union-with-record-hangs-on-json-decode.elm.txt
This one is especially interesting because by making a tiny change in a let expression it can be switched from working to hanging and back. Please see the other attachment.
It would be really great if someone could fix the problem or suggest a workaround.
Thank you very much!
Browser: Firefox 47.0
Elm: 0.17.1