Skip to content
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

Add Elm.Constraint.checkConstraint #15

Open
MartinSStewart opened this issue Mar 17, 2021 · 0 comments
Open

Add Elm.Constraint.checkConstraint #15

MartinSStewart opened this issue Mar 17, 2021 · 0 comments
Labels

Comments

@MartinSStewart
Copy link

I wanted to write an elm-review rule that would verify that an Elm package has a valid Elm constraint. For example, 0.19.1<=v<0.20.0 is valid and 0.0.0<=v<1.0.0 is not. Unfortunately, it's not easy to verify this without Elm.Constraint.checkConstraint: Constraint -> Constraint -> Bool. That is to say, a function that takes two constraints and checks that the first one is contained in the second one.

An alternative approach would be to implement #5 since this checkConstraint can be written by the user if Version and Op are exposed.

@evancz evancz added the request label Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants