Skip to content

Generalise 'AllowNewer'-types' names - #3476

Closed
hvr wants to merge 1 commit into
haskell:masterfrom
hvr:pr/relaxdeps-type
Closed

hvr wants to merge 1 commit into
haskell:masterfrom
hvr:pr/relaxdeps-type

Conversation

@hvr

@hvr hvr commented Jun 4, 2016

Copy link
Copy Markdown
Member

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

hvr commented Jun 4, 2016

Copy link
Copy Markdown
Member Author

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

Comment thread Cabal/Distribution/Simple/Setup.hs Outdated
data AllowNewerDep = AllowNewerDep PackageName
| AllowNewerDepScoped PackageName PackageName
data RelaxedDep = RelaxedDep PackageName
| RelaxedDepScoped PackageName PackageName

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

indentation

Copy link
Copy Markdown
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

23Skidoo commented Jun 6, 2016

Copy link
Copy Markdown
Member

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

@hvr hvr mentioned this pull request Jun 6, 2016
data AllowNewer =
data RelaxDeps =

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

Copy link
Copy Markdown
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

ezyang commented Jul 11, 2016

Copy link
Copy Markdown
Contributor

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