{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/2527","labels_url":"https://api.github.com/repos/haskell/cabal/issues/2527/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/2527/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/2527/events","html_url":"https://github.com/haskell/cabal/issues/2527","id":66623125,"number":2527,"title":"warning about optional `-Werror`","user":{"login":"amigalemming","id":898976,"avatar_url":"https://avatars.githubusercontent.com/u/898976?v=3","gravatar_id":"","url":"https://api.github.com/users/amigalemming","html_url":"https://github.com/amigalemming","followers_url":"https://api.github.com/users/amigalemming/followers","following_url":"https://api.github.com/users/amigalemming/following{/other_user}","gists_url":"https://api.github.com/users/amigalemming/gists{/gist_id}","starred_url":"https://api.github.com/users/amigalemming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amigalemming/subscriptions","organizations_url":"https://api.github.com/users/amigalemming/orgs","repos_url":"https://api.github.com/users/amigalemming/repos","events_url":"https://api.github.com/users/amigalemming/events{/privacy}","received_events_url":"https://api.github.com/users/amigalemming/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/haskell/cabal/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/haskell/cabal/milestones/28","html_url":"https://github.com/haskell/cabal/milestones/Cabal-1.24","labels_url":"https://api.github.com/repos/haskell/cabal/milestones/28/labels","id":929437,"number":28,"title":"Cabal-1.24","description":"","creator":{"login":"tibbe","id":17277,"avatar_url":"https://avatars.githubusercontent.com/u/17277?v=3","gravatar_id":"","url":"https://api.github.com/users/tibbe","html_url":"https://github.com/tibbe","followers_url":"https://api.github.com/users/tibbe/followers","following_url":"https://api.github.com/users/tibbe/following{/other_user}","gists_url":"https://api.github.com/users/tibbe/gists{/gist_id}","starred_url":"https://api.github.com/users/tibbe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tibbe/subscriptions","organizations_url":"https://api.github.com/users/tibbe/orgs","repos_url":"https://api.github.com/users/tibbe/repos","events_url":"https://api.github.com/users/tibbe/events{/privacy}","received_events_url":"https://api.github.com/users/tibbe/received_events","type":"User","site_admin":false},"open_issues":166,"closed_issues":3,"state":"open","created_at":"2015-01-09T23:37:55Z","updated_at":"2015-04-24T15:10:19Z","due_on":"2015-08-30T22:00:00Z","closed_at":null},"comments":3,"created_at":"2015-04-06T14:59:33Z","updated_at":"2015-04-24T18:40:14Z","closed_at":null,"body":"`cabal check` says about a package:\r\n~~~~\r\nThe following errors will cause portability problems on other environments:\r\n* 'ghc-options: -Wall -Werror' makes the package very easy to break with\r\nfuture GHC versions because new GHC versions often add new warnings. Use just\r\n'ghc-options: -Wall' instead.\r\n\r\nHackage would reject this package.\r\n~~~~\r\n\r\nThe warning seems to be reasonable, however the `-Werror` option is activated by a flag.\r\n~~~~\r\nFlag developer\r\n  Description: developer mode - warnings let compilation fail\r\n  Default: False\r\n\r\nLibrary\r\n  If flag(developer)\r\n    GHC-Options: -Werror\r\n~~~~\r\n\r\nI think, Cabal should only warn about unconditional uses of -Werror or conditional uses of -Werror where the flags default to `True`.\r\n"},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/96028679","html_url":"https://github.com/haskell/cabal/issues/2527#issuecomment-96028679","issue_url":"https://api.github.com/repos/haskell/cabal/issues/2527","id":96028679,"user":{"login":"ekmett","id":304657,"avatar_url":"https://avatars.githubusercontent.com/u/304657?v=3","gravatar_id":"","url":"https://api.github.com/users/ekmett","html_url":"https://github.com/ekmett","followers_url":"https://api.github.com/users/ekmett/followers","following_url":"https://api.github.com/users/ekmett/following{/other_user}","gists_url":"https://api.github.com/users/ekmett/gists{/gist_id}","starred_url":"https://api.github.com/users/ekmett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ekmett/subscriptions","organizations_url":"https://api.github.com/users/ekmett/orgs","repos_url":"https://api.github.com/users/ekmett/repos","events_url":"https://api.github.com/users/ekmett/events{/privacy}","received_events_url":"https://api.github.com/users/ekmett/received_events","type":"User","site_admin":false},"created_at":"2015-04-24T18:40:14Z","updated_at":"2015-04-24T18:40:14Z","body":"(About half of my packages currently have such a flag for use when testing on travis.)"}}