fantomas
fantomas copied to clipboard
Stroupstrous: Type alias for anonymous record type
Issue created from fantomas-online
Code
type Props =
{| SessionId: string
Dispatch: Msg -> unit
OnTextareaFocus: unit -> unit |}
type Props =
{ SessionId: string
Dispatch: Msg -> unit
OnTextareaFocus: unit -> unit }
Result
type Props =
{| SessionId: string
Dispatch: Msg -> unit
OnTextareaFocus: unit -> unit |}
type Props = {
SessionId: string
Dispatch: Msg -> unit
OnTextareaFocus: unit -> unit
}
Problem description
I propose to include this case as part of the scope of https://github.com/fsprojects/fantomas/issues/1408 Expected result:
type Props = {|
SessionId: string
Dispatch: Msg -> unit
OnTextareaFocus: unit -> unit
|}
To solve this, fsharp_multiline_block_brackets_on_same_column would need to respected first.
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 branch at 2022-04-01T14:31:49Z - b6828ffefe7618b7441f0a85925b281c2b337aa8
{ config with
MultilineBlockBracketsOnSameColumn = true
Ragnarok = true }
Did you know that you can ignore files when formatting from fantomas-tool or the FAKE targets by using a .fantomasignore file?