-
Notifications
You must be signed in to change notification settings - Fork 42
checkSubstitutionCoverage: check for constructor-like configuration #2015
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
checkSubstitutionCoverage: check for constructor-like configuration #2015
Conversation
|
I used a small |
| isSymbolic = | ||
| Foldable.any isSomeConfigVariableName substitutionVariables | ||
| || isNothing | ||
| ( getConstructorLike | ||
| . Attribute.constructorLikeAttribute | ||
| . extractAttributes | ||
| $ term configuration | ||
| ) |
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.
I think we only need to check that the configuration is not constructor-like:
| isSymbolic = | |
| Foldable.any isSomeConfigVariableName substitutionVariables | |
| || isNothing | |
| ( getConstructorLike | |
| . Attribute.constructorLikeAttribute | |
| . extractAttributes | |
| $ term configuration | |
| ) | |
| isSymbolic = (not . isConstructorLike) (term configuration) |
| x |-> _0 | ||
| </state> | ||
| </T> | ||
| #Not ( #Exists I . { |
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 test is not right. I think we should remove it.
|
One more thing: can you please add the example from the issue as an integration test? |
Fixes #2010
Reviewer checklist
stack test --coveragestack haddock