Skip to content

Linebreak printer for pipe chains #6387

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

Closed
wants to merge 2 commits into from

Conversation

aspeddro
Copy link
Contributor

@aspeddro aspeddro commented Sep 5, 2023

Close #6380

The proposal is to break into several lines when two or more pipes are used

Example:

From

let bazz = foo.bars->OptionEx.arrayValues->Map.String.fromArray

To:

let bazz =
  foo.bars
  ->OptionEx.arrayValues
  ->Map.String.fromArray

The following is not formatted:

let bazz = foo.bars->OptionEx.arrayValues

@aspeddro aspeddro changed the title Smart linebreak printer for pipe chains Linebreak printer for pipe chains Sep 7, 2023
@aspeddro aspeddro marked this pull request as draft September 11, 2023 01:51
@aspeddro aspeddro marked this pull request as ready for review September 22, 2023 23:58
@aspeddro aspeddro closed this Sep 28, 2023
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

Successfully merging this pull request may close these issues.

Smart linebreak printer for pipe chains
1 participant