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
letc=if bar |> Seq.exists ((|KeyValue|)>> snd >>(=)(Some i))thenfalseelsetrue
Result
letc=if bar
|> Seq.exists ((|KeyValue|)>> snd
>>(=)(Some i))thenfalseelsetrue
Problem description
For unclear reasons, this is an offside error on the (|KeyValue|) line. The problem is that the whole thing is happening inside the if check, and the offside rules are somehow weird there.
I think the right answer is to modify F# to allow this. However, if we have to stick around with the existing rules, then I think the following is the best of a bad bunch:
letc=if
bar
|> Seq.exists
((|KeyValue|)>> snd
>>(=)(Some i))thenfalseelsetrue
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
For unclear reasons, this is an offside error on the
(|KeyValue|)
line. The problem is that the whole thing is happening inside theif
check, and the offside rules are somehow weird there.I think the right answer is to modify F# to allow this. However, if we have to stick around with the existing rules, then I think the following is the best of a bad bunch:
Extra information
Options
Fantomas Master at 01/27/2021 07:36:19 - 138146e
Default Fantomas configuration
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?
The text was updated successfully, but these errors were encountered: