avh4 / avh4/elm-format

adjacent let blocks should be joined

Open
#558 3 comments 0 reactions 0 assignees View on GitHub
in-progress small
Dominant language
Haskell
Stars
1.3k
Forks
147
PR merge metrics
No merged PRs in 30d

Description

```elm
let
a = 1
in
let
b = 2
in
a + b
```

should merge the two blocks of definitions. Are there any cases where this changes the meaning of the code?

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Elm example with elm-format and inspect how adjacent let/in expressions are currently formatted. Determine whether merging the definition blocks preserves meaning in relevant cases, then add coverage for the intended formatting behavior and its semantic edge cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
elm
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.