tweag / topiary

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

Function dangling on multi-line call #759

Closed nbacquey closed 1 month ago

nbacquey commented 1 month ago

Description

Allows the following to be formatted as such:

let _ =
  foo bar baz @@ fun x ->
  x

let _ =
  foo
    bar
    baz
    @@ fun x ->
    x

Closes #731

Checklist

Checklist before merging:

aspiwack commented 1 month ago

Ah yes… indeed. Both situations show up where you want indentation and when you don't. Maybe we'll invent two different symbols eventually, a formatter can't read our mind after all.