Did some digging and it appears to be bad recursion in the serialization function for the debugger (Ellie always includes the debugger). I suspect if you compile this locally without the debugger it’ll work.
It does indeed work for me in elm reactor on my machine. Looking at the JS code for the Kernel implementations of List.sort and List.sortWith revealed no reason it would EVER stack overflow, unless there’s a bug in the browser’s JavaScript sort function on arrays.
Exactly. In fact I think the debugger causing “max call stack size exceeded” errors is already a known issue (although I couldn’t find it on the elm/compiler repo (edit) or elm/browser which actually has the debugger code)
I see — I didn’t have access to a computer with Elm installed, but now I tried it locally and it does seem to work fine.
I’d like to report the issue, but I’m not sure where it should go — do you think it’s it Ellie-specific (for ellie-app/ellie?) or shall I just open it direct in elm/core?