reflex-dom
reflex-dom copied to clipboard
Add DomHasCallStack for ghcjs-dom debug feature
https://github.com/ghcjs/ghcjs-dom/blob/master/README.md#debug
Pending performance testing.
Per https://github.com/ghcjs/ghcjs-dom/blob/master/README.md#adding-domhascallstack-constraint there should be no performance issues when that library doesn't have debugging. So maybe this is good and we just need to change reflex platform to make sure that flag is off in release builds?
https://github.com/ghcjs/ghcjs-dom/blob/master/ghcjs-dom/ghcjs-dom.cabal#L28 at least currently, it's off by default.
There are other things to worry about, though. "Debug levels" are rarely composable, and debugging a library and debugging something using a library is rather different.
It's not clear how this stuff works with reflex, but I trust @hamishmack to have tried it out and gotten value :).