{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/cabal/issues/2397","repository_url":"https://api.github.com/repos/haskell/cabal","labels_url":"https://api.github.com/repos/haskell/cabal/issues/2397/labels{/name}","comments_url":"https://api.github.com/repos/haskell/cabal/issues/2397/comments","events_url":"https://api.github.com/repos/haskell/cabal/issues/2397/events","html_url":"https://github.com/haskell/cabal/issues/2397","id":55955220,"node_id":"MDU6SXNzdWU1NTk1NTIyMA==","number":2397,"title":"Making a flag default based on ghc version","user":{"login":"ethercrow","id":222467,"node_id":"MDQ6VXNlcjIyMjQ2Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/222467?v=4","gravatar_id":"","url":"https://api.github.com/users/ethercrow","html_url":"https://github.com/ethercrow","followers_url":"https://api.github.com/users/ethercrow/followers","following_url":"https://api.github.com/users/ethercrow/following{/other_user}","gists_url":"https://api.github.com/users/ethercrow/gists{/gist_id}","starred_url":"https://api.github.com/users/ethercrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethercrow/subscriptions","organizations_url":"https://api.github.com/users/ethercrow/orgs","repos_url":"https://api.github.com/users/ethercrow/repos","events_url":"https://api.github.com/users/ethercrow/events{/privacy}","received_events_url":"https://api.github.com/users/ethercrow/received_events","type":"User","site_admin":false},"labels":[{"id":5625690,"node_id":"MDU6TGFiZWw1NjI1Njkw","url":"https://api.github.com/repos/haskell/cabal/labels/Cabal:%20file%20format","name":"Cabal: file format","color":"fbca04","default":false},{"id":5625691,"node_id":"MDU6TGFiZWw1NjI1Njkx","url":"https://api.github.com/repos/haskell/cabal/labels/Cabal:%20other","name":"Cabal: other","color":"fbca04","default":false},{"id":1389140,"node_id":"MDU6TGFiZWwxMzg5MTQw","url":"https://api.github.com/repos/haskell/cabal/labels/type:%20enhancement","name":"type: enhancement","color":"e99695","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-01-29T20:53:44Z","updated_at":"2018-06-11T03:02:39Z","closed_at":"2018-06-11T03:02:39Z","author_association":"NONE","body":"yi depends on hint, which is not updated for ghc 7.10 yet, so I've tried the following in yi.cabal:\n\n```\nflag hint\n  if impl(ghc >= 7.10.1)\n    Default: False\n  else\n    Default: True\n  Description: Include hint (haskell interpreter) in yi\n```\n\nbut got\n\n```\ncabal: 'parseField' called on a non-field. This is possibly a bug in Cabal.\nPlease report it to the developers: https://github.com/haskell/cabal/issues/new\n```\n\nIs it a bug in cabal or is it illegal to place Default field under conditional?\n"},"comment":{"url":"https://api.github.com/repos/haskell/cabal/issues/comments/396109985","html_url":"https://github.com/haskell/cabal/issues/2397#issuecomment-396109985","issue_url":"https://api.github.com/repos/haskell/cabal/issues/2397","id":396109985,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjEwOTk4NQ==","user":{"login":"grayjay","id":4276753,"node_id":"MDQ6VXNlcjQyNzY3NTM=","avatar_url":"https://avatars3.githubusercontent.com/u/4276753?v=4","gravatar_id":"","url":"https://api.github.com/users/grayjay","html_url":"https://github.com/grayjay","followers_url":"https://api.github.com/users/grayjay/followers","following_url":"https://api.github.com/users/grayjay/following{/other_user}","gists_url":"https://api.github.com/users/grayjay/gists{/gist_id}","starred_url":"https://api.github.com/users/grayjay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grayjay/subscriptions","organizations_url":"https://api.github.com/users/grayjay/orgs","repos_url":"https://api.github.com/users/grayjay/repos","events_url":"https://api.github.com/users/grayjay/events{/privacy}","received_events_url":"https://api.github.com/users/grayjay/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T03:02:39Z","updated_at":"2018-06-11T03:02:39Z","author_association":"COLLABORATOR","body":"Closing in favor of #5328, which would allow setting the flag default based on GHC version."}}
{"actor":{"display_login":"grayjay"}}