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
Labels
easy difficulty Very easy medium priority Priority: intermediate

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.

@CohenCyril CohenCyril added easy difficulty Very easy high priority High priority medium priority Priority: intermediate and removed high priority High priority labels Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy difficulty Very easy medium priority Priority: intermediate
Projects
None yet
Development

No branches or pull requests

2 participants