# Elm-format 0.8.2

**URL:** <https://discourse.elm-lang.org/t/elm-format-0-8-2/4130>\
**Category:** Show and Tell\
**Created:** [August 9, 2019, 6:51pm UTC](https://discourse.elm-lang.org/t/elm-format-0-8-2/4130 "2019-08-09T18:51:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![avh4](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/avh4/32/97_2.png) [@avh4](https://discourse.elm-lang.org/u/avh4)\
**Post date:** [August 9, 2019, 6:51pm UTC](https://discourse.elm-lang.org/t/elm-format-0-8-2/4130/1 "2019-08-09T18:51:55Z")

</div>

[`elm-format`](https://github.com/avh4/elm-format) formats [Elm](http://elm-lang.org) source code according to a standard set of rules based on [the official Elm Style Guide](http://elm-lang.org/docs/style-guide).

Here are details about the latest 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](https://github.com/avh4/elm-format/blob/0.8.2/CHANGELOG.md) for details.

## Install

```nohighlight
npm install -g elm-format

```

or [download from the release page](https://github.com/avh4/elm-format/releases/tag/0.8.2).

## 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

---

<div class="post-metadata">

**Author:** ![alexkorban](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/alexkorban/32/3242_2.png) [@alexkorban](https://discourse.elm-lang.org/u/alexkorban)\
**Post date:** [August 9, 2019, 9:39pm UTC](https://discourse.elm-lang.org/t/elm-format-0-8-2/4130/2 "2019-08-09T21:39:35Z")

</div>

I’m really happy about the `exposing (..)` change, thank you! I normally expose everything while developing a module, and then constrain exports at the end, so this will save me quite a bit of time.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex035/uploads/elm_lang/original/1X/50a05e53677a2c3b47776d7abd0f113eb50193a1.png) [@system](https://discourse.elm-lang.org/u/system)\
**Post date:** [August 19, 2019, 9:39pm UTC](https://discourse.elm-lang.org/t/elm-format-0-8-2/4130/3 "2019-08-19T21:39:37Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
