haskell / haskell/haskell-mode
Incorrect indentation for 'let' inside list comprehension
Open
indentation
- Dominant language
- Emacs Lisp
- Stars
- 1.4k
- Forks
- 354
- Avg merge
- 5d 10h
- Merged PRs (30d)
- 2
Description
Using haskell-indentation mode, I only get the indentation option marked "2" in the example below.
```
foo = [undefined |
let _ = undefined,
1 2
```
I believe 1 is the only correct indentation, because of the comma after the 'let' clause. If I go ahead and continue the code like this...
```
foo = [undefined |
let _ = undefined,
_ <- undefined,
```
...then I get the error "Illegal token: value" when I try to indent or insert a new line.
Contributor guide
Assessment
This issue has not been assessed yet.