-
Notifications
You must be signed in to change notification settings - Fork 338
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re #2829: Make instance arguments in pattern synonyms work in express…
…ions. If a pattern synonym is used in an expression, we need to make sure that its instance arguments become instance metas. Agda only turns an instance argument into an instance meta when the argument is entirely omitted. That is, `{{_}}` does not create an instance meta, but this is exactly what the pattern synonym expansion produces in expressions. Having added `metaKind` to the `MetaInfo` record, we can now create instance underscores in the abstract syntax, which fixes our dilemma.
- Loading branch information
1 parent
a2e63cc
commit 426d699
Showing
5 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,9 @@ module _ where | |
|
||
h : D → D | ||
h p = c | ||
|
||
i : D → D | ||
i p = p -- Should solve. | ||
|
||
j : D → D | ||
j (p {{d}}) = p {{d = d}} |