tweag / topiary

https://topiary.tweag.io/
MIT License
579 stars 29 forks source link

Remove indentations and newlines in final-argument continuations #723

Closed nbacquey closed 2 months ago

nbacquey commented 2 months ago

Description

This PR tweaks the OCaml formatting rules around the concatenation operators (e.g. @@) and anonymous function definitions, such that it is possible to write final-argument continuations without unnecessary indentations or newlines.

Closes #718

Checklist

Checklist before merging:

nbacquey commented 2 months ago

Although the PR solves the specific use-case of the issue, and leaves the rest of the test file (almost) intact, the tweak to the rule feels a bit artificial, and probably won't scale if we have similar cases in the future.