Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lambda functions miss the first pipe when formatted #3192

Closed
janmasrovira opened this issue Nov 26, 2024 · 1 comment · Fixed by #3194
Closed

Lambda functions miss the first pipe when formatted #3192

janmasrovira opened this issue Nov 26, 2024 · 1 comment · Fixed by #3194

Comments

@janmasrovira
Copy link
Collaborator

Example:

eq-lambda : Eq UNat :=
  mkEq
    λ{
      uzero uzero := true
      | (usuc n) (usuc m) := Eq.eq n m
      | _ _ := false
    };

In order to be consistent with other places where we also use pipes, it should be:

eq-lambda : Eq UNat :=
  mkEq
    λ{
      | uzero uzero := true
      | (usuc n) (usuc m) := Eq.eq n m
      | _ _ := false
    };
@lukaszcz
Copy link
Collaborator

Right, but if there is only one branch we shouldn't add a pipe, I think (so we have things like \{x := x + 1}).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants