Open Xophmeister opened 3 months ago
The difficulty is that as soon as you deal with long lines, then you have an optimisation problem to solve.
If you decide, for instance, that all the forms that cross the maximum column are considered multiline, you'll often make a lot of very short lines. So you need a more complex strategy. It's kind of tricky, this is where pretty printing libraries come in handy. I don't have a clear idea how such pretty printers and our current output strategy would meld.
But it is definitely a feature that some people want.
This has been mentioned a few times. For example:
Originally posted in https://github.com/tweag/topiary/pull/699#pullrequestreview-1988678032
Per the comment, Topiary currently doesn't do anything with long-lines. It would be worth investigating whether anything suitably general can be done (e.g., forcing multiline mode at a certain column, etc.).