dotnet / dotnet/fsharp

Wrong indentation in list comprehension leads to unhelpful error message

Open
#4,232 0 comments 1 reaction 0 assignees View on GitHub
Area-Diagnostics Feature Improvement
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

In larger elmish views we see newcomers often messup indentation. Unfortunately the compiler is not helpful. This is one case of it:

let div _ _ = 1

let view model dispatch =
[
div [] []
div [] []
div [] []
div [] []
]

![image](https://user-images.githubusercontent.com/57396/35192091-31735ee8-fe8b-11e7-8eb3-1f647e52aa16.png)

(related to #4228)

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.