Pretty format ELM model in browser

January 17, 2019

An example of pretty format in browser

Using Debug.toString is really helpful to help debug the model but the format of the output is hard to read. Looking for solution I stumbled upon this gem (not the ruby gem). I changed it to work in elm 0.19 and fix a minor issue when using custom type for the Model. Here’s the final result on Gist.