-
Notifications
You must be signed in to change notification settings - Fork 54
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
Curly braces are allowed nested in patterns #1380
Curly braces are allowed nested in patterns #1380
Conversation
195296c
to
7a95e21
Compare
abeb1f4
to
a27470c
Compare
Compiling: module braces;
f : {A : Type} -> A -> A;
f {Do you wanna stack trace?} x := x;
end; results in:
Should be a user-level error message. |
Maybe I'll just open the above as a separate issue. It fails also for explicit arguments in ordinary braces. |
Maybe it's fine to leave it as it is for now in the current PR, but I think ultimately PatternBraces should be removed from the scoped concrete syntax. It's not a kind of pattern, but an indication that the argument is implicit. The information on which patterns (arguments) are implicit should perhaps be kept in FunctionClause? Analogously, you don't have PatternParens in the scoped concrete syntax, PatternAtomParens seems to be removed at scoping. |
Good point. I think it is better if I remove PatternBraces from scoped syntax in this PR |
Done in 1108b7f |
1108b7f
to
de606c1
Compare
Do you intend to fix "proper error messages" in another commit to this PR, or should this be done in another issue? |
Let's do it in a separate pr. |
Okay, I'll approve this PR then. |
a42e674
to
30ae6c7
Compare
6e2aefe
to
bd57aa2
Compare
Fixes #1337.