avh4 / avh4/elm-format

Is handling of function application followed by infix operators okay?

Open
#33 13 comments 0 reactions 0 assignees View on GitHub
discussion
Dominant language
Haskell
Stars
1.3k
Forks
147
PR merge metrics
No merged PRs in 30d

Description

``` elm
vboxlist
(text "| ") ", "
empty
pair pairs
|> indent 4
```

the function arguments and the infix operators get indented to the same level, even though they are at different levels in the AST.

Contributor guide

No contributing guide indexed for this repository

Research direction

Begin by reproducing the formatter output for the Elm snippet in the issue, focusing on function application followed by infix operators. Trace how the displayed indentation relates to the AST levels, then confirm that the final formatting distinguishes those levels as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
elm, haskell
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.