Skip to content
Pre-release
Pre-release

@avh4 avh4 released this Aug 9, 2019 · 12 commits to master since this release

Simpler editor integration

Two small improvements should make integration with code editors smoother with elm-format 0.8.2.
When installed with npm, elm-format startup time has been reduced by 70% (roughly 150ms).
And elm-format will now assume it should work in Elm 0.19 mode if autodetection of your Elm version fails.

If you still need to work with Elm 0.18 code, you must make sure that either elm-format is run from the directory containing your elm-package.json file (and there must not be a elm.json file in that directory), or elm-format must be invoked with the --elm-version=0.18 option.

exposing (..)

The feature of automatically expanding exposing (..) in module lines has been removed.
While exposing everything in a module is an anti-pattern for production code,
it can be useful for rapid development sketches when the interfaces of your modules are not important.

To replace the old expansion behavior, elm-format now allows module lines without an exposing clause. Such lines will have the exposing automatically generated using the same logic that was previously used to expand exposing (..).

Other changes

elm-format 0.8.2 also contains several bug fixes and other small changes.
See the CHANGELOG for details.

Install

npm install -g elm-format

or download from the release page.

Thanks to ...

  • @mdevlamynck for implementing the fix for removing invalid (..) in @docs lines
  • @andys8 and @BendingBender for debugging slow startup times when installed via npm
  • @omnibs for help updating the parser
Assets 8
You can’t perform that action at this time.