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

Uninformative error message when there is a syntax error in the call to a builder #451

Open
hivert opened this issue Oct 10, 2024 · 0 comments

Comments

@hivert
Copy link
Member

hivert commented Oct 10, 2024

Suppose that I've set up correctly what is needed to write

HB.instance Definition _ (V : monoidType) :=
  Monoid.isLaw.Build V 1 *%M mulmA mul1m mulm1.

but if by mistake I write

HB.instance Definition _ (V : monoidType) :=
  Monoid.isLaw.Build V 1 *%M mulmA mul1m @mulm1. (* <- mind the @ here *)

HB error message is

Error: Usage: HB.instance Definition <Name> := <Builder> T ...

which is not informative.

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

No branches or pull requests

1 participant