tweag / topiary

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

Missing space for pattern matching of constructor holding list #647

Closed Niols closed 1 year ago

Niols commented 1 year ago

As of 48659c7, Topiary formats

match foo with
| Bar ["baz"] -> qux

as

match foo with
| Bar["baz"] -> qux

I would expect the space after the constructor to be preserved.

$ nix run github:tweag/topiary/48659c7 -- format -l ocaml
match foo with
| Bar ["baz"] -> qux
^D