elm-format
is the official source code formatter for Elm.
elm-format Main.elm
git clone https://github.com/avh4/elm-format.git
cd elm-format
cabal sandbox init --sandbox=.cabal-sandbox
cabal install -j
.cabal-sandbox/bin/elm-format --help
cabal configure --enable-tests
./tests/run-tests.sh