This is a not-so-straight port of debug.js to debug.elm. From there, debug.js is generated with
pepe:~/scratch/debug$ cd elm
pepe:~/scratch/debug/elm$ elm-make Main.elm --output=../html/debug.js
I believe that there are no functional changes other than a minor fix to the generator of the #function-source control. And no DOM manipulation anymore ! This port is highly declarative and, I think, much easier to modify and maintain. I didn't really like the Elm language, but I enjoyed the Elm libraries and the so called architecture. In fact, this rewrite was a lot of fun.
I would recommend merging this over the Purescript rewrite of the DOM frontend. I like Purescript better as a language and I know that it has Elm-like frameworks, but I have run out of time to continue experimenting, and I am rather happy with the Elm rewrite tbh.
TODO
Integrated build system that generates debug.js if the elm toolchain is in the path, please help !
Here we go again.
This is a not-so-straight port of
debug.js
todebug.elm
. From there,debug.js
is generated withI believe that there are no functional changes other than a minor fix to the generator of the #function-source control. And no DOM manipulation anymore ! This port is highly declarative and, I think, much easier to modify and maintain. I didn't really like the Elm language, but I enjoyed the Elm libraries and the so called architecture. In fact, this rewrite was a lot of fun.
I would recommend merging this over the Purescript rewrite of the DOM frontend. I like Purescript better as a language and I know that it has Elm-like frameworks, but I have run out of time to continue experimenting, and I am rather happy with the Elm rewrite tbh.
TODO
debug.js
if the elm toolchain is in the path, please help !