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
The following example contains a lambda clause that does not fit onto one line.
f : Nat -> Nat;
f :=
\ {
| zero := let foo : Nat := 1;in foo
| _ := 1
};
It currently gets formatted to:
f : Nat -> Nat;
f :=
\ {
| zero := let
foo : Nat := 1;
in foo
| _ := 1
};
We should format lambda clause bodies in the same way as function bodies. i.e the body should start on a new line if it is too long to fit on one line:
f : Nat -> Nat;
f :=
\ {
| zero :=
let
foo : Nat := 1;
in foo
| _ := 1
};
The text was updated successfully, but these errors were encountered:
This PR modifies the pretty printer for lambda clauses so that the body
will start on a new line if it is too long to fit on a single line. This
is exactly how we handle function clause bodies.
* Closes#2014
The following example contains a lambda clause that does not fit onto one line.
It currently gets formatted to:
We should format lambda clause bodies in the same way as function bodies. i.e the body should start on a new line if it is too long to fit on one line:
The text was updated successfully, but these errors were encountered: