In Elm you can only have recursive values at the top level. Recursive functions are supported everywhere. See e.g. Cyclic value with lambda - #4 by evancz for the reasoning.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Json decoder runtime error | 7 | 1360 | January 3, 2018 | |
| How to JSON.decode a recursive data type? | 7 | 4275 | July 7, 2018 | |
| Cyclic value with lambda | 6 | 1405 | July 14, 2020 | |
| Recursive Json decoder fails on non-recursive branch? | 0 | 681 | April 6, 2018 | |
| Resurrecting elm-lang/lazy | 7 | 813 | February 28, 2024 |