AaronCZim/to-elm-format-string

toElmFormatString adds newlines and indentation to toString


Install
elm-package install AaronCZim/to-elm-format-string 1.0.3

Documentation

to-elm-format-string

Deprecated: AaronCZim/to-multiline-string supports strings better, but it uses native javascript code, so it can't be published.

A quick way to see the model as your programs run. There is only one function, toElmFormatString which turns data into a formatted string with newlines and indentation so you can easily read your model's value.

Just add the line:

Html.pre [][ model |> toElmFormatString |> Html.text ]

to the end of your view function and you'll never wonder what the value of your model is again.