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
val
member
Default settings are adding a space after the name in
val x: int -> int
giving
val x : int -> int
Style guide examples for val don't have this space, e.g. https://docs.microsoft.com/en-us/dotnet/fsharp/style-guide/formatting#formatting-types-in-signatures
Also for member. A space is only required if there are explicit generic type parameters to prevent f<'T>:
f<'T>:
Relevant lines
Samples https://fsprojects.github.io/fantomas-tools/#/fantomas/preview?data=N4KABGBEDGD2AmBTSAuKBbBBXANosAsgDoBORAdqRQC4CeADvgMJgC8V5EY5iA7mlnIBLamAC0APjBMOXdInQAjRCTAAFNEPLVZEeUpWFN28VK06ynPQuWqA4gQA8AcgAqUtG9Ng3usPtswAAMggENwkONRSTBzPwDDAAoAagBKKO84yw4AN1CcMByo3PywADMMmKyKPILqMpd3MGLLWrAAcwqfV29fVtLOgCZGj27e1w5IABpwKABnRGpqLXa51DAAbVmIUC4uSAASOkZ1yHNp7f2D2qxkNC29vYAGGcf9gElyJG0AZSEAL2QrzeYAALJcIABdS4AX2BOwhUCODDuUHO8KuN1RDxBAEYMXtIARQgAPAAyWkQZMQ5Ha1AAFhcQWBcYMnojoXs4Zddo9DsdUZBFLBYDgmXzrvlbuscW9BgT9j8FEI4DhYOQAILUACiXwA8mUKTxxW8yvkFhzYRjeYTkSc0EKRWKFYcsTLERAAMwKiCQH70ULQRAAIUQZVgJEQalCJFC8moKhNj2oJFulq51sR-JRp2FoqTvslOGl9w9YJ9UH9gZDYYjVNgvBU0FCC0%2BOVgzeW6oLXBTabenK43L2NquAtzTp7rql2LLAFYK36A0HQ%2BHIwBVeiMEjN1vkdudoTditmnAWgdWnlZu2CvPO69u0vMgBsi6rK9rkaYOBbcyY6rmPtoGoCMewgU9z0eQcIGHLhR0LccHTvKcixLTYywAdjfZcazXRACBsRMT3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PQmUrhqPq7RyAH3IEfdUfwsmfSwJGVwsB0rBM%2BkDbioiyE8xcZAxJ7jTEgk9BXEEVc84qHIJUnI9ZaSCNsNwrQIggbCJBDUmJdSJENPvEksuKTx7tPrssbRZI4yKHgKEb8sBAa0mYbwDW1Tokr1GuIiBulZlNOSXsT0u92ldUTqERQeArGJ3pD8Wg2hSRHL0bU628TBQ0ngAabRPw6B4Adh45%2BXo36V11MCw0lJuIwBIDgMokB9HOOmRcyFzS3ienge0xRyjynaE%2BBg0IuSL7jOOaA05Bi744tltcrgnpGHtOQZS1B2i5htQ6l8ZhgFEAq0QZSX%2B-1AYASGqVRx9KsXnKQm44eMiWlyI5TGNikYHlzGgCQfqWhPrCvXMIdUPVoA-ljHwn5kETkQzOYYplW9PEpPMe0sFergLhKQNamVYByqzEhMCM4cwRaA3WGpEAMIgA
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Default settings are adding a space after the name in
giving
Style guide examples for
val
don't have this space, e.g. https://docs.microsoft.com/en-us/dotnet/fsharp/style-guide/formatting#formatting-types-in-signaturesAlso for
member
. A space is only required if there are explicit generic type parameters to preventf<'T>:
Relevant lines
May need to be something more like this: https://github.com/fsprojects/fantomas/blob/master/src/Fantomas/CodePrinter.fs#L5325
Samples https://fsprojects.github.io/fantomas-tools/#/fantomas/preview?data=N4KABGBEDGD2AmBTSAuKBbBBXANosAsgDoBORAdqRQC4CeADvgMJgC8V5EY5iA7mlnIBLamAC0APjBMOXdInQAjRCTAAFNEPLVZEeUpWFN28VK06ynPQuWqA4gQA8AcgAqUtG9Ng3usPtswAAMggENwkONRSTBzPwDDAAoAagBKKO84yw4AN1CcMByo3PywADMMmKyKPILqMpd3MGLLWrAAcwqfV29fVtLOgCZGj27e1w5IABpwKABnRGpqLXa51DAAbVmIUC4uSAASOkZ1yHNp7f2D2qxkNC29vYAGGcf9gElyJG0AZSEAL2QrzeYAALJcIABdS4AX2BOwhUCODDuUHO8KuN1RDxBAEYMXtIAR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