Skip to content

Formatting unspaced operators  #810

@jfmengels

Description

@jfmengels

I (too often) have code like this

Input:

a = f>>.field
b = g|>.field

Actual output (version 0.8.5):

a =
    f >>. field


b =
    g |>. field

Expected output:

a =
    f >> .field


b =
    g |> .field

I think the current behavior was correct for older versions of Elm, where >>. was potentially a valid Elm operator. Since 0.19, the operators are all known, and my thinking is that we could decide to try to end up in a state that it is more likely correct code (but is less agnostic about the operators).

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.9(temporary label for search filtering)full operators listFeatures that require knowledge of the complete list of defined operators

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions