-
-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fantomas cuts a long line of code in the middle of a pattern match #884
Comments
Linking #842 |
Not sure if this is a bug anymore, looks ok now in online tool. |
That's true. It doesn't seem to be respecting |
True |
Would module MyModule =
let foo : Foo -> Foo =
BigLongTypee.doStuff<aaaaaaaaaaaaa, bbbbbb, BigLongTypee>
(fun aaa
bbbbbb
(CCC ccc)
ddddddddddd
(EEEE eee)
(FFF fff)
ggggg ->
failwith "Not important"
) be a solution to respect the max line length? |
This seems fairly readable. For e.g., I don't think we can make |
Issue created from fantomas-online
The long line of code for the lambda has multiple pattern matches in it. The default configuration settings of fantomas means that when it tries to shorten the length of the line it splits the pattern match over many lines, lead to invalid code
Code
Error
Options
Fantomas Master at 06/02/2020 18:39:46 - eee0f32
IndentSpaceNum
4
PageWidth
120
SemicolonAtEndOfLine
false
SpaceBeforeParameter
true
SpaceBeforeLowercaseInvocation
true
SpaceBeforeUppercaseInvocation
false
SpaceBeforeClassConstructor
false
SpaceBeforeMember
false
SpaceBeforeColon
false
SpaceAfterComma
true
SpaceBeforeSemicolon
false
SpaceAfterSemicolon
true
IndentOnTryWith
false
SpaceAroundDelimiter
true
MaxIfThenElseShortWidth
40
MaxInfixOperatorExpression
50
MaxRecordWidth
40
MaxArrayOrListWidth
40
MaxLetBindingWidth
40
MultilineBlockBracketsOnSameColumn
false
NewlineBetweenTypeDefinitionAndMembers
false
KeepIfThenInSameLine
false
StrictMode
false
The text was updated successfully, but these errors were encountered: