We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue created from fantomas-ui
When formatting a type alias for a struct tuple the resulting code is not valid F#.
This compiles correctly:
type TupleStruct = (struct (string * string))
This no longer compiles without the wrapping parentheses:
type TupleStruct = struct (string * string)
Note that this seems like it might be a shortcoming in the F# compiler: dotnet/fsharp#7014.
Fantomas 3.1.0
IndentOnTryWith
false
IndentSpaceNum
4
KeepNewlineAfter
MaxIfThenElseShortWidth
40
PageWidth
120
ReorderOpenDeclaration
SemicolonAtEndOfLine
SpaceAfterComma
true
SpaceAfterSemicolon
SpaceAroundDelimiter
SpaceBeforeArgument
SpaceBeforeColon
StrictMode
The text was updated successfully, but these errors were encountered:
I think it would be possible to always wrap struct tuple in parentheses.
Sorry, something went wrong.
Add parenthesis when type abbreviation is a tuple struct. Fixes fspro…
cde4229
…jects#605
Add parenthesis when type abbreviation is a tuple struct. Fixes #605 (#…
24a9fd1
…609)
Successfully merging a pull request may close this issue.
Issue created from fantomas-ui
When formatting a type alias for a struct tuple the resulting code is not valid F#.
Code
This compiles correctly:
Error
This no longer compiles without the wrapping parentheses:
Note that this seems like it might be a shortcoming in the F# compiler: dotnet/fsharp#7014.
Options
Fantomas 3.1.0
IndentOnTryWith
false
IndentSpaceNum
4
KeepNewlineAfter
false
MaxIfThenElseShortWidth
40
PageWidth
120
ReorderOpenDeclaration
false
SemicolonAtEndOfLine
false
SpaceAfterComma
true
SpaceAfterSemicolon
true
SpaceAroundDelimiter
true
SpaceBeforeArgument
true
SpaceBeforeColon
false
StrictMode
false
The text was updated successfully, but these errors were encountered: