You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Formatter breaks let f: type a. ... = headers when the body spans several lines #9070
This is the usual way to write a function over a GADT, so every such function gets the three-line header and an extra indentation level. print_value_binding in res_printer.ml puts the header and the body in one group, so a line break in the body breaks every soft line of the header too. The current layout is recorded in tests/syntax_tests/data/printer/expr/expected/newtype.res.txt.
Expected: the header stays on one line when it fits, and the body is laid out as for any other let.
Activity
Keep the header of a let with locally abstract types on one line