{"action":"closed","number":2907,"pull_request":{"url":"https://api.github.com/repos/haskell/cabal/pulls/2907","id":49439283,"html_url":"https://github.com/haskell/cabal/pull/2907","diff_url":"https://github.com/haskell/cabal/pull/2907.diff","patch_url":"https://github.com/haskell/cabal/pull/2907.patch","issue_url":"https://api.github.com/repos/haskell/cabal/issues/2907","number":2907,"state":"closed","locked":false,"title":"Solver: add support for preferences to enable optional stanzas","user":{"login":"dcoutts","id":1339423,"avatar_url":"https://avatars.githubusercontent.com/u/1339423?v=3","gravatar_id":"","url":"https://api.github.com/users/dcoutts","html_url":"https://github.com/dcoutts","followers_url":"https://api.github.com/users/dcoutts/followers","following_url":"https://api.github.com/users/dcoutts/following{/other_user}","gists_url":"https://api.github.com/users/dcoutts/gists{/gist_id}","starred_url":"https://api.github.com/users/dcoutts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcoutts/subscriptions","organizations_url":"https://api.github.com/users/dcoutts/orgs","repos_url":"https://api.github.com/users/dcoutts/repos","events_url":"https://api.github.com/users/dcoutts/events{/privacy}","received_events_url":"https://api.github.com/users/dcoutts/received_events","type":"User","site_admin":false},"body":"Optional stanzas are test suites and benchmarks. They are disabled\r\nby default but can be enabled by constraints. This patch adds the\r\nability to enable by preferences rather than just by hard constraints.\r\nThis means it's possible to ask the solver to try enabling a test\r\nsuite and/or benchmark, but if the solver cannot manage it then it\r\ncan still pick not to enable the optional stanza.\r\n\r\nThis feature is not currently used, but will be needed by some new\r\nbuild/sandbox code where we want to have all targets available if\r\npossible (though only build them when requested), and not have to\r\nre-solve when the user later does ask to build a test suite.","created_at":"2015-11-02T14:45:31Z","updated_at":"2016-01-04T16:26:59Z","closed_at":"2016-01-04T16:26:59Z","merged_at":null,"merge_commit_sha":"1647adbe8ea20c672ef747750622189d97c9a1eb","assignee":{"login":"kosmikus","id":293191,"avatar_url":"https://avatars.githubusercontent.com/u/293191?v=3","gravatar_id":"","url":"https://api.github.com/users/kosmikus","html_url":"https://github.com/kosmikus","followers_url":"https://api.github.com/users/kosmikus/followers","following_url":"https://api.github.com/users/kosmikus/following{/other_user}","gists_url":"https://api.github.com/users/kosmikus/gists{/gist_id}","starred_url":"https://api.github.com/users/kosmikus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kosmikus/subscriptions","organizations_url":"https://api.github.com/users/kosmikus/orgs","repos_url":"https://api.github.com/users/kosmikus/repos","events_url":"https://api.github.com/users/kosmikus/events{/privacy}","received_events_url":"https://api.github.com/users/kosmikus/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/haskell/cabal/pulls/2907/commits","review_comments_url":"https://api.github.com/repos/haskell/cabal/pulls/2907/comments","review_comment_url":"https://api.github.com/repos/haskell/cabal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/2907/comments","statuses_url":"https://api.github.com/repos/haskell/cabal/statuses/0db3b216ce04634b14506e387f2504af8db76e05","head":{"label":"dcoutts:master","ref":"master","sha":"0db3b216ce04634b14506e387f2504af8db76e05","user":{"login":"dcoutts","id":1339423,"avatar_url":"https://avatars.githubusercontent.com/u/1339423?v=3","gravatar_id":"","url":"https://api.github.com/users/dcoutts","html_url":"https://github.com/dcoutts","followers_url":"https://api.github.com/users/dcoutts/followers","following_url":"https://api.github.com/users/dcoutts/following{/other_user}","gists_url":"https://api.github.com/users/dcoutts/gists{/gist_id}","starred_url":"https://api.github.com/users/dcoutts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcoutts/subscriptions","organizations_url":"https://api.github.com/users/dcoutts/orgs","repos_url":"https://api.github.com/users/dcoutts/repos","events_url":"https://api.github.com/users/dcoutts/events{/privacy}","received_events_url":"https://api.github.com/users/dcoutts/received_events","type":"User","site_admin":false},"repo":{"id":10475196,"name":"cabal","full_name":"dcoutts/cabal","owner":{"login":"dcoutts","id":1339423,"avatar_url":"https://avatars.githubusercontent.com/u/1339423?v=3","gravatar_id":"","url":"https://api.github.com/users/dcoutts","html_url":"https://github.com/dcoutts","followers_url":"https://api.github.com/users/dcoutts/followers","following_url":"https://api.github.com/users/dcoutts/following{/other_user}","gists_url":"https://api.github.com/users/dcoutts/gists{/gist_id}","starred_url":"https://api.github.com/users/dcoutts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcoutts/subscriptions","organizations_url":"https://api.github.com/users/dcoutts/orgs","repos_url":"https://api.github.com/users/dcoutts/repos","events_url":"https://api.github.com/users/dcoutts/events{/privacy}","received_events_url":"https://api.github.com/users/dcoutts/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dcoutts/cabal","description":"Duncan's random Cabal hacking","fork":true,"url":"https://api.github.com/repos/dcoutts/cabal","forks_url":"https://api.github.com/repos/dcoutts/cabal/forks","keys_url":"https://api.github.com/repos/dcoutts/cabal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dcoutts/cabal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dcoutts/cabal/teams","hooks_url":"https://api.github.com/repos/dcoutts/cabal/hooks","issue_events_url":"https://api.github.com/repos/dcoutts/cabal/issues/events{/number}","events_url":"https://api.github.com/repos/dcoutts/cabal/events","assignees_url":"https://api.github.com/repos/dcoutts/cabal/assignees{/user}","branches_url":"https://api.github.com/repos/dcoutts/cabal/branches{/branch}","tags_url":"https://api.github.com/repos/dcoutts/cabal/tags","blobs_url":"https://api.github.com/repos/dcoutts/cabal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dcoutts/cabal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dcoutts/cabal/git/refs{/sha}","trees_url":"https://api.github.com/repos/dcoutts/cabal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dcoutts/cabal/statuses/{sha}","languages_url":"https://api.github.com/repos/dcoutts/cabal/languages","stargazers_url":"https://api.github.com/repos/dcoutts/cabal/stargazers","contributors_url":"https://api.github.com/repos/dcoutts/cabal/contributors","subscribers_url":"https://api.github.com/repos/dcoutts/cabal/subscribers","subscription_url":"https://api.github.com/repos/dcoutts/cabal/subscription","commits_url":"https://api.github.com/repos/dcoutts/cabal/commits{/sha}","git_commits_url":"https://api.github.com/repos/dcoutts/cabal/git/commits{/sha}","comments_url":"https://api.github.com/repos/dcoutts/cabal/comments{/number}","issue_comment_url":"https://api.github.com/repos/dcoutts/cabal/issues/comments{/number}","contents_url":"https://api.github.com/repos/dcoutts/cabal/contents/{+path}","compare_url":"https://api.github.com/repos/dcoutts/cabal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dcoutts/cabal/merges","archive_url":"https://api.github.com/repos/dcoutts/cabal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dcoutts/cabal/downloads","issues_url":"https://api.github.com/repos/dcoutts/cabal/issues{/number}","pulls_url":"https://api.github.com/repos/dcoutts/cabal/pulls{/number}","milestones_url":"https://api.github.com/repos/dcoutts/cabal/milestones{/number}","notifications_url":"https://api.github.com/repos/dcoutts/cabal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dcoutts/cabal/labels{/name}","releases_url":"https://api.github.com/repos/dcoutts/cabal/releases{/id}","created_at":"2013-06-04T09:31:49Z","updated_at":"2015-04-28T14:55:48Z","pushed_at":"2016-01-04T16:25:26Z","git_url":"git://github.com/dcoutts/cabal.git","ssh_url":"git@github.com:dcoutts/cabal.git","clone_url":"https://github.com/dcoutts/cabal.git","svn_url":"https://github.com/dcoutts/cabal","homepage":"http://haskell.org/cabal","size":26834,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"haskell:master","ref":"master","sha":"dca1c96a5c7f7a8c1408e007c0b1514a976aac87","user":{"login":"haskell","id":450574,"avatar_url":"https://avatars.githubusercontent.com/u/450574?v=3","gravatar_id":"","url":"https://api.github.com/users/haskell","html_url":"https://github.com/haskell","followers_url":"https://api.github.com/users/haskell/followers","following_url":"https://api.github.com/users/haskell/following{/other_user}","gists_url":"https://api.github.com/users/haskell/gists{/gist_id}","starred_url":"https://api.github.com/users/haskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haskell/subscriptions","organizations_url":"https://api.github.com/users/haskell/orgs","repos_url":"https://api.github.com/users/haskell/repos","events_url":"https://api.github.com/users/haskell/events{/privacy}","received_events_url":"https://api.github.com/users/haskell/received_events","type":"Organization","site_admin":false},"repo":{"id":3728161,"name":"cabal","full_name":"haskell/cabal","owner":{"login":"haskell","id":450574,"avatar_url":"https://avatars.githubusercontent.com/u/450574?v=3","gravatar_id":"","url":"https://api.github.com/users/haskell","html_url":"https://github.com/haskell","followers_url":"https://api.github.com/users/haskell/followers","following_url":"https://api.github.com/users/haskell/following{/other_user}","gists_url":"https://api.github.com/users/haskell/gists{/gist_id}","starred_url":"https://api.github.com/users/haskell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haskell/subscriptions","organizations_url":"https://api.github.com/users/haskell/orgs","repos_url":"https://api.github.com/users/haskell/repos","events_url":"https://api.github.com/users/haskell/events{/privacy}","received_events_url":"https://api.github.com/users/haskell/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/haskell/cabal","description":"Official upstream development repository for Cabal and cabal-install","fork":false,"url":"https://api.github.com/repos/haskell/cabal","forks_url":"https://api.github.com/repos/haskell/cabal/forks","keys_url":"https://api.github.com/repos/haskell/cabal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haskell/cabal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haskell/cabal/teams","hooks_url":"https://api.github.com/repos/haskell/cabal/hooks","issue_events_url":"https://api.github.com/repos/haskell/cabal/issues/events{/number}","events_url":"https://api.github.com/repos/haskell/cabal/events","assignees_url":"https://api.github.com/repos/haskell/cabal/assignees{/user}","branches_url":"https://api.github.com/repos/haskell/cabal/branches{/branch}","tags_url":"https://api.github.com/repos/haskell/cabal/tags","blobs_url":"https://api.github.com/repos/haskell/cabal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haskell/cabal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haskell/cabal/git/refs{/sha}","trees_url":"https://api.github.com/repos/haskell/cabal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haskell/cabal/statuses/{sha}","languages_url":"https://api.github.com/repos/haskell/cabal/languages","stargazers_url":"https://api.github.com/repos/haskell/cabal/stargazers","contributors_url":"https://api.github.com/repos/haskell/cabal/contributors","subscribers_url":"https://api.github.com/repos/haskell/cabal/subscribers","subscription_url":"https://api.github.com/repos/haskell/cabal/subscription","commits_url":"https://api.github.com/repos/haskell/cabal/commits{/sha}","git_commits_url":"https://api.github.com/repos/haskell/cabal/git/commits{/sha}","comments_url":"https://api.github.com/repos/haskell/cabal/comments{/number}","issue_comment_url":"https://api.github.com/repos/haskell/cabal/issues/comments{/number}","contents_url":"https://api.github.com/repos/haskell/cabal/contents/{+path}","compare_url":"https://api.github.com/repos/haskell/cabal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haskell/cabal/merges","archive_url":"https://api.github.com/repos/haskell/cabal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haskell/cabal/downloads","issues_url":"https://api.github.com/repos/haskell/cabal/issues{/number}","pulls_url":"https://api.github.com/repos/haskell/cabal/pulls{/number}","milestones_url":"https://api.github.com/repos/haskell/cabal/milestones{/number}","notifications_url":"https://api.github.com/repos/haskell/cabal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haskell/cabal/labels{/name}","releases_url":"https://api.github.com/repos/haskell/cabal/releases{/id}","created_at":"2012-03-15T12:53:38Z","updated_at":"2016-01-02T06:08:30Z","pushed_at":"2016-01-04T16:25:27Z","git_url":"git://github.com/haskell/cabal.git","ssh_url":"git@github.com:haskell/cabal.git","clone_url":"https://github.com/haskell/cabal.git","svn_url":"https://github.com/haskell/cabal","homepage":"http://haskell.org/cabal","size":30877,"stargazers_count":575,"watchers_count":575,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":305,"mirror_url":null,"open_issues_count":689,"forks":305,"open_issues":689,"watchers":575,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/haskell/cabal/pulls/2907"},"html":{"href":"https://github.com/haskell/cabal/pull/2907"},"issue":{"href":"https://api.github.com/repos/haskell/cabal/issues/2907"},"comments":{"href":"https://api.github.com/repos/haskell/cabal/issues/2907/comments"},"review_comments":{"href":"https://api.github.com/repos/haskell/cabal/pulls/2907/comments"},"review_comment":{"href":"https://api.github.com/repos/haskell/cabal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/haskell/cabal/pulls/2907/commits"},"statuses":{"href":"https://api.github.com/repos/haskell/cabal/statuses/0db3b216ce04634b14506e387f2504af8db76e05"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":84,"deletions":944,"changed_files":5}}