Skip to content

Solver: add support for preferences to enable optional stanzas - #2907

Closed
dcoutts wants to merge 1 commit into
haskell:masterfrom
dcoutts:master
Closed

dcoutts wants to merge 1 commit into
haskell:masterfrom
dcoutts:master

Conversation

@dcoutts

@dcoutts dcoutts commented Nov 2, 2015

Copy link
Copy Markdown
Contributor

Optional stanzas are test suites and benchmarks. They are disabled
by default but can be enabled by constraints. This patch adds the
ability to enable by preferences rather than just by hard constraints.
This means it's possible to ask the solver to try enabling a test
suite and/or benchmark, but if the solver cannot manage it then it
can still pick not to enable the optional stanza.

This feature is not currently used, but will be needed by some new
build/sandbox code where we want to have all targets available if
possible (though only build them when requested), and not have to
re-solve when the user later does ask to build a test suite.

@dcoutts

dcoutts commented Nov 2, 2015

Copy link
Copy Markdown
Contributor Author

Oh, meant to say that this implements issue #2903

@23Skidoo

23Skidoo commented Nov 5, 2015

Copy link
Copy Markdown
Member

/cc @kosmikus

The current incarnation of the tar package originated as code inside
cabal-install. That external tar package is now quite mature, with more
features and is much faster. In particular the tar index features will
be very useful for cabal-install, which currently has to maintain its
own custom-format index/cache.
@dcoutts

dcoutts commented Jan 4, 2016

Copy link
Copy Markdown
Contributor Author

Oops, I had this patch on my master branch, which I just overwrote with the tar patch. I'll open another PR about this and other solver changes.

@dcoutts dcoutts closed this Jan 4, 2016
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