Skip to content
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

Difference in behavior between signature and implementation files for single case DU #973

Closed
1 of 3 tasks
nojaf opened this issue Jul 17, 2020 · 1 comment · Fixed by #1765
Closed
1 of 3 tasks

Comments

@nojaf
Copy link
Contributor

nojaf commented Jul 17, 2020

Issue created from fantomas-online

Code

namespace foo

type SynTypeConstraint =

    /// F# syntax: is 'typar: struct
    | WhereTyparIsValueType of
        typar: SynTypar *
        range: range

Result

namespace foo


/// F# syntax: is 'typar: struct
type SynTypeConstraint = WhereTyparIsValueType of typar: SynTypar * range: range

Problem description

In an implementation file this is formatted as:

namespace foo

type SynTypeConstraint =

    /// F# syntax: is 'typar: struct
    | WhereTyparIsValueType of typar: SynTypar * range: range

Probably related to change in #948

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 at 7/16/2020

Name Value
IndentSize 4
MaxLineLength 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
MaxValueBindingWidth 40
MaxFunctionBindingWidth 40
MultilineBlockBracketsOnSameColumn false
NewlineBetweenTypeDefinitionAndMembers false
KeepIfThenInSameLine false
MaxElmishWidth 40
SingleArgumentWebMode false
AlignFunctionSignatureToIndentation false
AlternativeLongMemberDefinitions false
StrictMode false
@nojaf
Copy link
Contributor Author

nojaf commented Jun 5, 2021

No longer an issue.
See https://fsprojects.github.io/fantomas-tools/#/fantomas/preview?data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HilIcaCKawwOEDFaAy5xAJmfl82Z2SAlr0MdgvF7oCVhO4ZE9ZVLnCaKQDM0SXL0x1HOEcUYeBNDzXaPpK4QA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant