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
typeFoo=| Bar ofint| Baz
letfoo=function| Foo (1|2)->true|_->false
Result
typeFoo=| Bar ofint| Baz
letfoo=function| Foo (1|2)->true|_->false
Problem description
When I format match expressions using multiple sub-cases in parentheses, Fantomas formats each sub-case as though it were a main case, whereas it should not split short parenthesized expressions across lines.
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.
Options
Fantomas master branch at 1/1/1990
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:
The main problem here is that Fantomas has one way of formatting patterns regardless of where in the syntax tree they occur.
I believe some separation of printing patterns in CodePrinter.fs might be interesting to introduce to tackle these kinds of problems.
Issue created from fantomas-online
Code
Result
Problem description
When I format
match
expressions using multiple sub-cases in parentheses, Fantomas formats each sub-case as though it were a main case, whereas it should not split short parenthesized expressions across lines.Extra information
Options
Fantomas master branch at 1/1/1990
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: