Skip to content

Idempotency problem when destructing a record inside a lambda argument #1922

Closed
@nojaf

Description

Issue created from fantomas-online

Formatted code

let g =
    processes
    |> Array.groupBy

        (fun { partNumber = p
               revisionNumber = r
               processName = pn } -> p, r, pn)

Reformatted code

let g =
    processes
    |> Array.groupBy


        (fun { partNumber = p
               revisionNumber = r
               processName = pn } -> p, r, pn)

Problem description

This problem occurs because of the record inside the lambda.

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 4.6 branch at 10/20/2021 08:35:15 - 0f59676

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?

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions