Compound resources#573
Open
pschachte wants to merge 12 commits into
Open
Conversation
* add warnings for empty compound resources * change version in wybe.cabal to 0.2.0.0 * update Makefile to read version from wybe.cabal
Uniqueness checking foils including unique resources such as !io in a compound resource.
Updated compound_resource test case to cover this. Please check the change to test-cases/final-dump/constant_type_constraint_error.exp I suspect this comes from the change to handling of `=`, and I'm not sure if the change is good or bad.
Owner
Author
|
Closes #46 |
jimbxb
reviewed
Jun 18, 2026
jimbxb
reviewed
Jun 20, 2026
jimbxb
requested changes
Jun 24, 2026
jimbxb
left a comment
Collaborator
There was a problem hiding this comment.
This program
resource foo = bar
pass
compiles with no error, but it ought to be erroneous as the bar resource is undefined.
Owner
Author
|
OK, I think all issues have been addressed. |
Collaborator
|
Yes, looks good. Though, a test case with a compound resource in a |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Allow resources to be defined as the union of other resources. Using those resources then specifies that all the constituent resources are actually used. This gives a more concise syntax for specifying use of a collection of resources.