There are a lot of details to this release, so I'll start out with thanks to everyone who reported issues; to our new and continuing contributors @ento, @danyx23, @eeue56, and @mgold; and to the plugin maintainers @rundis, @benjick, @ajhager, and @Bogdanp.
And if you're in a hurry, here's the link: elm-format-0.3.0-alpha downloads and installation instructions
There are now two flavors of elm-format in each release: one for Elm 0.17, and one for Elm 0.16. You should download the one that corresponds to the version of Elm you are using.
But note that these two flavors are the same except that they have different default values for the new--elm-version argument. Downloading the correct flavor will make things easier for you, since your IDE plugins will work properly, but if you pass the --elm-version argument to elm-format, both flavors will behave identically. (This works because elm-format can parse both 0.17 and 0.16 files and can output either format regardless of which format the input was in.)
elm-format --validate (useful for CI scripts){--} and --} scattered around your file is not directly supported=-- parses correctly= and : appear in the syntax are now formatted consistentlyWe've had several discussions of indentation width in the past, but the rationale for trying 4-space indentation again is here: https://gist.github.com/avh4/bc092cc2207230d044f73defdd46fd13
elm-format has been in alpha for a long time all ready, so apologies for drawing out this issue and making another significant change. If you have strong opinions in favor of 2-space indentation, I do want to hear them, but I would appreciate if you would first spend a few minutes considering 1) why you have those opinions, and 2) how you would convince someone holding an opposing indentation opinion.
If you have trouble installing elm-format to work with your editor, please file an issue or make a pull request to the elm-format README.
I'm hoping the next elm-format release will be beta-quality and ready to announce on elm-discuss. Thanks for all the feedback!
[ div
[]
[ text "" ]
]--
You received this message because you are subscribed to the Google Groups "elm-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elm-dev/CAMZecXnpmrryB3fj-m-1GT4aka6YaFdBeANBoTZhJfb6%3D70xdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
I'm bothered more by the fact that elm-format is using a default that's different from elm-lang/core than by de fact that it uses a default different from my preference.
I can switch to 4-space without much stress if that's the default in elm-lang/core
--
You received this message because you are subscribed to the Google Groups "elm-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elm-dev/e2976d08-c054-4cca-a1d7-65395e52d2b7%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "elm-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elm-dev/ffcc0878-bb6b-41fc-a904-ce0548d3b6a9%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elm-dev/CAMZecX%3DL_QFZOd%3DxTkLV1FC3s9pGrUre8BJGAKisdVyStrf41g%40mail.gmail.com.
-- very concise
view model =
div []
[ text "Something"
, loginPanel.view model
]
view model =
div []
[ text "Something"
, loginPanel.view model
]--
You received this message because you are subscribed to the Google Groups "elm-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elm-dev/e6b3dfc0-1b68-4403-a7ae-0c8d094c046d%40googlegroups.com.