Indentation rules should be made clearer in list comprehsions
- Dominant language
- F#
- Stars
- 4.3k
- Forks
- 876
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 131
Description
For elmish newcomers it's sometimes hard to understand the indentation rules. And compiler error messages are not helpful:
let div _ _ = 1
let subView _ _ = [1; 2]
let view1 model dispatch =
[
div [] [
subView model dispatch
]
]
let view2 model dispatch =
[
div []
[
subView model dispatch
]
]
let view3 model dispatch =
[
div []
[
subView model dispatch
]
]
view1 and view3 are ok. view2 gives:

Contributor guide
Assessment
This issue has not been assessed yet.