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
I propose we add a setting to always put | before a discriminated union declaration.
The existing way of Fantomas deals with this problem is not conform to the GR style guide.
The bar gets omitted in certain scenarios. These are also, at the time of writing, not conform to what the MS style guide says.
I propose we add a setting to always put
|
before a discriminated union declaration.The existing way of Fantomas deals with this problem is not conform to the GR style guide.
The bar gets omitted in certain scenarios. These are also, at the time of writing, not conform to what the MS style guide says.
Proposed setting name:
fsharp_keep_bar_before_discriminated_union_declaration
, default false.Pros and Cons
The advantages of making this adjustment to Fantomas are correctly implementing two style guides.
The disadvantages of making this adjustment to Fantomas are one extra setting to maintain.
Examples
Extra information
Estimated cost (XS, S, M, L, XL, XXL): XS / S
Related suggestions: (put links to related suggestions here)
Affidavit (please submit!)
Please tick this by placing a cross in the box:
Please tick all that apply:
https://github.com/G-Research/fsharp-formatting-conventions/#formatting-discriminated-union-declarations
//cc @Smaug123
The text was updated successfully, but these errors were encountered: