Skip to content

Fix bug in dependency solver stanza preferences #3480

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

Merged
merged 2 commits into from
Jul 5, 2016

Conversation

grayjay
Copy link
Collaborator

@grayjay grayjay commented Jun 5, 2016

The first commit creates a newtype for the weak/trivial attribute of package flags and stanzas.

The second commit fixes a bug in dependency solver stanza preferences. Previously, stanza choices were set to "weak" even when the stanza preference did not apply. See #3453 (comment).

@kosmikus Does it make sense to call the newtype WeakOrTrivial? I'm still not completely sure I understand the meaning of the weak/trivial fields in the solver's FChoice and SChoice nodes.

Previously, stanza choices were set to "weak" even when the preference did not
apply.
@grayjay grayjay force-pushed the stanza-preferences branch from 3242a47 to 463ebb9 Compare June 5, 2016 22:24
@23Skidoo
Copy link
Member

23Skidoo commented Jun 9, 2016

/cc @kosmikus

@kosmikus
Copy link
Contributor

kosmikus commented Jul 5, 2016

LGTM.

@23Skidoo 23Skidoo merged commit 00f5d2c into haskell:master Jul 5, 2016
@23Skidoo
Copy link
Member

23Skidoo commented Jul 5, 2016

Merged, thanks!

@grayjay
Copy link
Collaborator Author

grayjay commented Jul 5, 2016

Thanks!

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.

3 participants