-
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
Added refine for products and arrows #1416
base: dev
Are you sure you want to change the base?
Conversation
switch (Typ.term_of(Typ.weak_head_normalize(ctx, ana))) { | ||
| Arrow(_, _) => "fun -> " | ||
| Prod(tys) => | ||
"(" ++ StringUtil.repeat(List.length(tys) - 1, ", ") ++ ") " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ends up adding a trailing space but that also seems to happen in the paste case as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't want extra parens if we're inside of a function application but I don't know how much it matters.
|
|
|
Add case patterns |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #1416 +/- ##
==========================================
- Coverage 46.87% 46.82% -0.05%
==========================================
Files 101 101
Lines 10153 10153
==========================================
- Hits 4759 4754 -5
- Misses 5394 5399 +5 |
Screencast.from.2024-11-03.18-11-46.webm
Fills holes of the arrow type with an empty function and product type with an empty tuple. I'm neutral on name but @thomasporter522 had suggested refine since that's what agda uses.