{"action":"opened","number":80,"pull_request":{"url":"https://api.github.com/repos/eagletmt/ghcmod-vim/pulls/80","id":44744093,"html_url":"https://github.com/eagletmt/ghcmod-vim/pull/80","diff_url":"https://github.com/eagletmt/ghcmod-vim/pull/80.diff","patch_url":"https://github.com/eagletmt/ghcmod-vim/pull/80.patch","issue_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/issues/80","number":80,"state":"open","locked":false,"title":"[wip] Remove inferred cabal include paths","user":{"login":"corngood","id":3077118,"avatar_url":"https://avatars.githubusercontent.com/u/3077118?v=3","gravatar_id":"","url":"https://api.github.com/users/corngood","html_url":"https://github.com/corngood","followers_url":"https://api.github.com/users/corngood/followers","following_url":"https://api.github.com/users/corngood/following{/other_user}","gists_url":"https://api.github.com/users/corngood/gists{/gist_id}","starred_url":"https://api.github.com/users/corngood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corngood/subscriptions","organizations_url":"https://api.github.com/users/corngood/orgs","repos_url":"https://api.github.com/users/corngood/repos","events_url":"https://api.github.com/users/corngood/events{/privacy}","received_events_url":"https://api.github.com/users/corngood/received_events","type":"User","site_admin":false},"body":"If you've build a cabal project against multiple sandboxes, you'll end up with all of their cabal_macros.h headers included with -optP, which leads to errors like:\r\n\r\n```\r\nIn file included from <command-line>:8:0: \r\n\r\n[..]/dist/dist-sandbox-4f8d9efc/build/autogen/cabal_macros.h:11:0:\r\n     error: \"VERSION_OpenGL\" redefined [-Werror]\r\n     #define VERSION_OpenGL \"2.12.0.1\"\r\n     ^\r\n```\r\n\r\nI believe it's all handled correctly in ghc-mod now with cabal-helper, and I haven't had any problems after removing the include paths.\r\n\r\nI haven't extensively tested this, tracked down the ghc-mod version requirement (I'm using HEAD), or updated tests, so [wip].\r\n\r\nAny thoughts?","created_at":"2015-09-11T03:48:29Z","updated_at":"2015-09-11T03:48:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f113b2f233fcdd6cf4976fb04edff72138113e8a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/pulls/80/commits","review_comments_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/pulls/80/comments","review_comment_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/issues/80/comments","statuses_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/statuses/b4498d3a03bc583e2f5d5e8a13dbacc94277da37","head":{"label":"corngood:multiple_sandbox_fix","ref":"multiple_sandbox_fix","sha":"b4498d3a03bc583e2f5d5e8a13dbacc94277da37","user":{"login":"corngood","id":3077118,"avatar_url":"https://avatars.githubusercontent.com/u/3077118?v=3","gravatar_id":"","url":"https://api.github.com/users/corngood","html_url":"https://github.com/corngood","followers_url":"https://api.github.com/users/corngood/followers","following_url":"https://api.github.com/users/corngood/following{/other_user}","gists_url":"https://api.github.com/users/corngood/gists{/gist_id}","starred_url":"https://api.github.com/users/corngood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corngood/subscriptions","organizations_url":"https://api.github.com/users/corngood/orgs","repos_url":"https://api.github.com/users/corngood/repos","events_url":"https://api.github.com/users/corngood/events{/privacy}","received_events_url":"https://api.github.com/users/corngood/received_events","type":"User","site_admin":false},"repo":{"id":42285585,"name":"ghcmod-vim","full_name":"corngood/ghcmod-vim","owner":{"login":"corngood","id":3077118,"avatar_url":"https://avatars.githubusercontent.com/u/3077118?v=3","gravatar_id":"","url":"https://api.github.com/users/corngood","html_url":"https://github.com/corngood","followers_url":"https://api.github.com/users/corngood/followers","following_url":"https://api.github.com/users/corngood/following{/other_user}","gists_url":"https://api.github.com/users/corngood/gists{/gist_id}","starred_url":"https://api.github.com/users/corngood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/corngood/subscriptions","organizations_url":"https://api.github.com/users/corngood/orgs","repos_url":"https://api.github.com/users/corngood/repos","events_url":"https://api.github.com/users/corngood/events{/privacy}","received_events_url":"https://api.github.com/users/corngood/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/corngood/ghcmod-vim","description":"Happy Haskell programming on Vim, powered by ghc-mod","fork":true,"url":"https://api.github.com/repos/corngood/ghcmod-vim","forks_url":"https://api.github.com/repos/corngood/ghcmod-vim/forks","keys_url":"https://api.github.com/repos/corngood/ghcmod-vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/corngood/ghcmod-vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/corngood/ghcmod-vim/teams","hooks_url":"https://api.github.com/repos/corngood/ghcmod-vim/hooks","issue_events_url":"https://api.github.com/repos/corngood/ghcmod-vim/issues/events{/number}","events_url":"https://api.github.com/repos/corngood/ghcmod-vim/events","assignees_url":"https://api.github.com/repos/corngood/ghcmod-vim/assignees{/user}","branches_url":"https://api.github.com/repos/corngood/ghcmod-vim/branches{/branch}","tags_url":"https://api.github.com/repos/corngood/ghcmod-vim/tags","blobs_url":"https://api.github.com/repos/corngood/ghcmod-vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/corngood/ghcmod-vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/corngood/ghcmod-vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/corngood/ghcmod-vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/corngood/ghcmod-vim/statuses/{sha}","languages_url":"https://api.github.com/repos/corngood/ghcmod-vim/languages","stargazers_url":"https://api.github.com/repos/corngood/ghcmod-vim/stargazers","contributors_url":"https://api.github.com/repos/corngood/ghcmod-vim/contributors","subscribers_url":"https://api.github.com/repos/corngood/ghcmod-vim/subscribers","subscription_url":"https://api.github.com/repos/corngood/ghcmod-vim/subscription","commits_url":"https://api.github.com/repos/corngood/ghcmod-vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/corngood/ghcmod-vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/corngood/ghcmod-vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/corngood/ghcmod-vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/corngood/ghcmod-vim/contents/{+path}","compare_url":"https://api.github.com/repos/corngood/ghcmod-vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/corngood/ghcmod-vim/merges","archive_url":"https://api.github.com/repos/corngood/ghcmod-vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/corngood/ghcmod-vim/downloads","issues_url":"https://api.github.com/repos/corngood/ghcmod-vim/issues{/number}","pulls_url":"https://api.github.com/repos/corngood/ghcmod-vim/pulls{/number}","milestones_url":"https://api.github.com/repos/corngood/ghcmod-vim/milestones{/number}","notifications_url":"https://api.github.com/repos/corngood/ghcmod-vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/corngood/ghcmod-vim/labels{/name}","releases_url":"https://api.github.com/repos/corngood/ghcmod-vim/releases{/id}","created_at":"2015-09-11T03:32:38Z","updated_at":"2015-09-11T03:32:38Z","pushed_at":"2015-09-11T03:38:41Z","git_url":"git://github.com/corngood/ghcmod-vim.git","ssh_url":"git@github.com:corngood/ghcmod-vim.git","clone_url":"https://github.com/corngood/ghcmod-vim.git","svn_url":"https://github.com/corngood/ghcmod-vim","homepage":"http://www.vim.org/scripts/script.php?script_id=4473","size":254,"stargazers_count":0,"watchers_count":0,"language":"VimL","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":"eagletmt:master","ref":"master","sha":"ff8fe7d64d0db35be9a753e2c2a289760ab02dd5","user":{"login":"eagletmt","id":69755,"avatar_url":"https://avatars.githubusercontent.com/u/69755?v=3","gravatar_id":"","url":"https://api.github.com/users/eagletmt","html_url":"https://github.com/eagletmt","followers_url":"https://api.github.com/users/eagletmt/followers","following_url":"https://api.github.com/users/eagletmt/following{/other_user}","gists_url":"https://api.github.com/users/eagletmt/gists{/gist_id}","starred_url":"https://api.github.com/users/eagletmt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eagletmt/subscriptions","organizations_url":"https://api.github.com/users/eagletmt/orgs","repos_url":"https://api.github.com/users/eagletmt/repos","events_url":"https://api.github.com/users/eagletmt/events{/privacy}","received_events_url":"https://api.github.com/users/eagletmt/received_events","type":"User","site_admin":false},"repo":{"id":3457255,"name":"ghcmod-vim","full_name":"eagletmt/ghcmod-vim","owner":{"login":"eagletmt","id":69755,"avatar_url":"https://avatars.githubusercontent.com/u/69755?v=3","gravatar_id":"","url":"https://api.github.com/users/eagletmt","html_url":"https://github.com/eagletmt","followers_url":"https://api.github.com/users/eagletmt/followers","following_url":"https://api.github.com/users/eagletmt/following{/other_user}","gists_url":"https://api.github.com/users/eagletmt/gists{/gist_id}","starred_url":"https://api.github.com/users/eagletmt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eagletmt/subscriptions","organizations_url":"https://api.github.com/users/eagletmt/orgs","repos_url":"https://api.github.com/users/eagletmt/repos","events_url":"https://api.github.com/users/eagletmt/events{/privacy}","received_events_url":"https://api.github.com/users/eagletmt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eagletmt/ghcmod-vim","description":"Happy Haskell programming on Vim, powered by ghc-mod","fork":false,"url":"https://api.github.com/repos/eagletmt/ghcmod-vim","forks_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/forks","keys_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/teams","hooks_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/hooks","issue_events_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/issues/events{/number}","events_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/events","assignees_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/assignees{/user}","branches_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/branches{/branch}","tags_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/tags","blobs_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/statuses/{sha}","languages_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/languages","stargazers_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/stargazers","contributors_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/contributors","subscribers_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/subscribers","subscription_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/subscription","commits_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/contents/{+path}","compare_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/merges","archive_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/downloads","issues_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/issues{/number}","pulls_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/pulls{/number}","milestones_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/milestones{/number}","notifications_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/labels{/name}","releases_url":"https://api.github.com/repos/eagletmt/ghcmod-vim/releases{/id}","created_at":"2012-02-16T05:24:31Z","updated_at":"2015-09-07T06:52:56Z","pushed_at":"2015-09-11T03:48:30Z","git_url":"git://github.com/eagletmt/ghcmod-vim.git","ssh_url":"git@github.com:eagletmt/ghcmod-vim.git","clone_url":"https://github.com/eagletmt/ghcmod-vim.git","svn_url":"https://github.com/eagletmt/ghcmod-vim","homepage":"http://www.vim.org/scripts/script.php?script_id=4473","size":734,"stargazers_count":302,"watchers_count":302,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":18,"forks":36,"open_issues":18,"watchers":302,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eagletmt/ghcmod-vim/pulls/80"},"html":{"href":"https://github.com/eagletmt/ghcmod-vim/pull/80"},"issue":{"href":"https://api.github.com/repos/eagletmt/ghcmod-vim/issues/80"},"comments":{"href":"https://api.github.com/repos/eagletmt/ghcmod-vim/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/eagletmt/ghcmod-vim/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/eagletmt/ghcmod-vim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eagletmt/ghcmod-vim/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/eagletmt/ghcmod-vim/statuses/b4498d3a03bc583e2f5d5e8a13dbacc94277da37"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":0,"deletions":21,"changed_files":1}}