Usage of the Debug module prevents to compile the code in optimized mode and to use tools like elm-optimize-level-2.
Debug.todo should be replaced by some code that produces a runtime exception, preferably with the possibility to specify a custom error message. It would even be better to handle the errors properly, but this would be a lot of work...
Debug.toString should be replaced with custom code that "stringifies" as much as needed in each case.
Usage of the
Debug
module prevents to compile the code in optimized mode and to use tools likeelm-optimize-level-2
.Debug.todo
should be replaced by some code that produces a runtime exception, preferably with the possibility to specify a custom error message. It would even be better to handle the errors properly, but this would be a lot of work...Debug.toString
should be replaced with custom code that "stringifies" as much as needed in each case.Debug.log
should be removed.