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

Generalise 'AllowNewer'-types' names #3476

Closed
wants to merge 1 commit into from

Conversation

hvr
Copy link
Member

@hvr hvr commented Jun 4, 2016

This also adds a not yet used AllowOlder newtype

This is a preparatory refactoring propsed in #3466 for supporting --allow-older

@hvr hvr force-pushed the pr/relaxdeps-type branch from b46dc87 to bffb366 Compare June 4, 2016 18:08
@hvr
Copy link
Member Author

hvr commented Jun 4, 2016

@dcoutts @23Skidoo all checks passed; are you ok with this refactoring?

data AllowNewerDep = AllowNewerDep PackageName
| AllowNewerDepScoped PackageName PackageName
data RelaxedDep = RelaxedDep PackageName
| RelaxedDepScoped PackageName PackageName
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@hvr hvr force-pushed the pr/relaxdeps-type branch from bffb366 to e879743 Compare June 5, 2016 21:11
This also adds a not yet used `AllowOlder` newtype

This is a preparatory refactoring propsed in haskell#3466 for supporting `--allow-older`
@hvr hvr force-pushed the pr/relaxdeps-type branch from e879743 to f3c47af Compare June 5, 2016 21:13
@23Skidoo
Copy link
Member

23Skidoo commented Jun 6, 2016

@hvr Haven't reviewed all changes in detail, but fine with me in principle.

@hvr hvr mentioned this pull request Jun 6, 2016
@@ -263,63 +264,87 @@ instance Semigroup GlobalFlags where
-- 'build-depends: array >= 0.3 && < 0.5', are we allowed to relax the upper
-- bound and choose a version of 'array' that is greater or equal to 0.5? By
-- default the upper bounds are always strictly honored.
data AllowNewer =
data RelaxDeps =

-- | Default: honor the upper bounds in all dependencies, never choose
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this haddock is outdated

@ezyang
Copy link
Contributor

ezyang commented Jul 11, 2016

Merged.

@ezyang ezyang closed this Jul 11, 2016
@hvr hvr deleted the pr/relaxdeps-type branch August 10, 2017 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants