5 ms·
Very nice. It took me a while to realize that array literals aren't supported, but once I did that I was able to write concatMap and watch it being evaluated.
by paf31 12y ago
Very nice. It took me a while to realize that array literals aren't supported, but once I did that I was able to write concatMap and watch it being evaluated.
A couple of points:
- If there is a syntax error, the box just turns red. It would be nice to see what the issue is.
- You could probably make it clearer that it's possible to execute arbitrary expressions, by editing the map term, for example.
- janpaul123 12y agoI've added error messages in https://github.com/stevekrouse/hs.js/commit/2ed274d4607a4c9d8ffff260cbd26d3275a8ede5 https://github.com/stevekrouse/hs.js/commit/2ed274d4607a4c9d... and https://github.com/stevekrouse/hs.js/commit/812945939e14e3370f0a84159f3a67558b4bcc38 https://github.com/stevekrouse/hs.js/commit/812945939e14e337.... The (edit) and (clear) links are now always visible to encourage editing, per https://github.com/stevekrouse/hs.js/commit/e301961c03d92c589d522c0b09da2548371c150a https://github.com/stevekrouse/hs.js/commit/e301961c03d92c58... Thanks!!