Skip to content

Fix bug in dependency solver stanza preferences - #3480

Merged
23Skidoo merged 2 commits into
haskell:masterfrom
sebright:stanza-preferences
Jul 5, 2016
Merged

23Skidoo merged 2 commits into
haskell:masterfrom
sebright:stanza-preferences

Conversation

@sebright

@sebright sebright commented Jun 5, 2016

Copy link
Copy Markdown
Collaborator

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.
@sebright
sebright force-pushed the stanza-preferences branch from 3242a47 to 463ebb9 Compare June 5, 2016 22:24
@23Skidoo

23Skidoo commented Jun 9, 2016

Copy link
Copy Markdown
Member

/cc @kosmikus

@kosmikus

kosmikus commented Jul 5, 2016

Copy link
Copy Markdown
Contributor

LGTM.

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

23Skidoo commented Jul 5, 2016

Copy link
Copy Markdown
Member

Merged, thanks!

@sebright

sebright commented Jul 5, 2016

Copy link
Copy Markdown
Collaborator Author

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