Closed
Description
Issue created from fantomas-online
Code
(*
My personal favorite: Discriminated Unions!
This is a feature related to sum types in category theory and incredibly useful for code correctness.
ref: https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/discriminated-unions
*)
type Days = Days of int // you can alias types in F# to get a DDD kind of vibe.
type StoryPoints = StoryPoints of int
type Money = Money of double
Result
(*
My personal favorite: Discriminated Unions!
This is a feature related to sum types in category theory and incredibly useful for code correctness.
ref: https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/discriminated-unions
*)
type Days = Days of int // you can alias types in F# to get a DDD kind of vibe.
type StoryPoints = StoryPoints of int
type Money = Money of double
Problem description
There should not be a blank line after the first type.
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 05/09/2021 13:45:10 - f10b822
Default Fantomas configuration
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?