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

[Feature request] Keep function or name bound to computation expression on declaration line #1526

Closed
3 of 6 tasks
xperiandri opened this issue Mar 18, 2021 · 1 comment
Closed
3 of 6 tasks

Comments

@xperiandri
Copy link

xperiandri commented Mar 18, 2021

If you have such method

let asyncDoSomething () = async {
    do! asyncSomething ()
    let! result = asyncGetSomething ()
    ()
}

let items = seq {
    "item1"
    "item2"
}

it will be reformatted into

let asyncDoSomething () =
    async {
        do! asyncSomething ()
        let! result = asyncGetSomething ()
        ()
    }

let items =
    seq {
        "item1"
        "item2"
    }

Can we add an option to preserve the first formatting?

Pros and Cons

The advantage is the fewer spaces at the left which allows putting more visible content on the line

Extra information

Estimated cost (XS, S, M, L, XL, XXL):

Affidavit

Please tick this by placing a cross in the box:

Please tick all that apply:

  • This is not a breaking change to Fantomas
  • I or my company would be willing to help implement and/or test this
  • This suggestion is part of the Microsoft style guide (please add a link to section if so)
  • This suggestion is part of the G-Research style guide (please add a link to section if so)
@nojaf
Copy link
Contributor

nojaf commented Mar 18, 2021

Hello, thank you for your interest in this project.
This request falls under the category "What are we not looking for?".
Thanks for understanding.

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

No branches or pull requests

2 participants