elm-format icon indicating copy to clipboard operation
elm-format copied to clipboard

elm-format formats Elm source code according to a standard set of rules based on the official Elm Style Guide

Results 123 elm-format issues
Sort by recently updated
recently updated
newest added

When one manually removes all exposed members from an `import`, `exposing ()` remains. These have to be removed manually, while elm-format could remove those empty exposes patterns automatically.

For example, when one moves an argument from a lambda to the declaration level, some `\ ->` might remain. These have to be removed manually, while `elm-format` could remove those...

feature for developers
discussion
lenient parser

This is a high-level tracking issue for end-of-line comments and having them attach to the back of the previous token instead of being attached the front of the next token....

discussion

Fixes https://github.com/avh4/elm-format/issues/755. Related to https://github.com/avh4/elm-format/issues/183. On my computer, it’s roughly 2.5 times faster! :tada: | command | main | this PR | | - | - | - | |...

performance

### Example input: ```elm getActiveChildren node = [] -- node.children |> List.filter isActive ``` ### Current output: ```elm getActiveChildren node = [] --node.children |> List.filter isActive ``` ### Desired output:...

discussion

Example input: ```elm module Foo exposing (..) {-| returns 5 -} foo = 5 ``` Current output: ```elm module Foo exposing (..) {-| returns 5 -} foo = 5 ```...

discussion

In my day-to-day writing Elm code, I can only think of one significant place where I don't have autoformatting today, but wish I had: specifying the order of my `Msg`...

discussion

Originally from a Discord thread. @avh4’s response there: > Yeah, I'm open to PRs for that! See https://github.com/avh4/elm-format/labels/lenient%20parser for some of the other ideas that have been documented. > >...

- 2023-04-12: punting for now. It seems like a lot of things require transformers < 0.6, which ships with ghc 9.6.1 (at least on nixpkgs)

maintenance