tweag / topiary

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

Indentation on multi-line call containing functions #745

Closed nbacquey closed 2 months ago

nbacquey commented 2 months ago

Description

Allows the following to be formatted as is:

foo
  bar
  (fun baz ->
    baaaaaaz
  )
  (fun qux ->
    quuuuuux
  )

This is a kind of a setback regarding the formatting of snippets such as the following:

foo bar (fun x ->
    x
  )

But I believe the topiary language isn't sufficiently expressive to currently have both.

Closes #726

Checklist

Checklist before merging: