haskell / haskell/haskell-mode

let-bindings in pattern guards breaks indention

Open
#1,729 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
1.4k
Forks
354
Avg merge
5d 10h
Merged PRs (30d)
2

Description

If one uses let bindings in pattern guards, the indention detection is completely borked.

If in the example below one presses RET at the marked position, you end up all the way to the left.

Expected behavior is that it keeps the indention of the curly braces (as it would if the let binding is dropped)
```
debugActions conf
| let mask = modMask conf
= [ RA { -- Curser here, press RET
}
]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.