You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letprintListWithOffset a list1 =
List.iter
(fun elem -> printfn "%d"(a + elem))
list1
// OK if lambda body is long enoughletprintListWithOffset a list1 =
List.iter
(fun elem ->// OK if lambda body is long enough
printfn "%d"(a + elem))
list1
Result
letprintListWithOffset a list1 =
List.iter (fun elem -> printfn "%d"(a + elem)) list1
// OK if lambda body is long enoughletprintListWithOffset a list1 =
List.iter (fun elem ->// OK if lambda body is long enough
printfn "%d"(a + elem)) list1
Problem description
This example is taken from the Microsoft F# code formatting guidelines.
The style guide says that the lambda should be on the next line, while Fantomas keeps it on the same line as List.iter.
Extra information
The formatted result breaks by code.
The formatted result gives compiler warnings.
I or my company would be willing to help fix this.
Issue created from fantomas-online
Code
Result
Problem description
This example is taken from the Microsoft F# code formatting guidelines.
The style guide says that the lambda should be on the next line, while Fantomas keeps it on the same line as
List.iter
.Extra information
Options
Fantomas Master at 10/23/2020 14:47:21 - cda111e
Default Fantomas configuration
The text was updated successfully, but these errors were encountered: