{"action":"created","issue":{"url":"https://api.github.com/repos/peti/jailbreak-cabal/issues/2","labels_url":"https://api.github.com/repos/peti/jailbreak-cabal/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/peti/jailbreak-cabal/issues/2/comments","events_url":"https://api.github.com/repos/peti/jailbreak-cabal/issues/2/events","html_url":"https://github.com/peti/jailbreak-cabal/issues/2","id":36477622,"number":2,"title":"Generates wrong type field.","user":{"login":"aycanirican","id":135230,"avatar_url":"https://avatars.githubusercontent.com/u/135230?v=3","gravatar_id":"","url":"https://api.github.com/users/aycanirican","html_url":"https://github.com/aycanirican","followers_url":"https://api.github.com/users/aycanirican/followers","following_url":"https://api.github.com/users/aycanirican/following{/other_user}","gists_url":"https://api.github.com/users/aycanirican/gists{/gist_id}","starred_url":"https://api.github.com/users/aycanirican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aycanirican/subscriptions","organizations_url":"https://api.github.com/users/aycanirican/orgs","repos_url":"https://api.github.com/users/aycanirican/repos","events_url":"https://api.github.com/users/aycanirican/events{/privacy}","received_events_url":"https://api.github.com/users/aycanirican/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/peti/jailbreak-cabal/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"peti","id":28323,"avatar_url":"https://avatars.githubusercontent.com/u/28323?v=3","gravatar_id":"","url":"https://api.github.com/users/peti","html_url":"https://github.com/peti","followers_url":"https://api.github.com/users/peti/followers","following_url":"https://api.github.com/users/peti/following{/other_user}","gists_url":"https://api.github.com/users/peti/gists{/gist_id}","starred_url":"https://api.github.com/users/peti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peti/subscriptions","organizations_url":"https://api.github.com/users/peti/orgs","repos_url":"https://api.github.com/users/peti/repos","events_url":"https://api.github.com/users/peti/events{/privacy}","received_events_url":"https://api.github.com/users/peti/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2014-06-25T13:12:14Z","updated_at":"2015-01-10T18:49:40Z","closed_at":null,"body":"Example section of pipes-csv.cabal:\r\n\r\n~~~\r\ntest-suite hunit\r\n  type: exitcode-stdio-1.0\r\n  main-is: test-pipes-csv.hs\r\n  ghc-options: -w -threaded -rtsopts -with-rtsopts=-N\r\n  hs-source-dirs: test\r\n\r\n  if !flag(test-hunit)\r\n    buildable: False\r\n  else\r\n    build-depends:\r\n        base\r\n      , HUnit >= 1.2\r\n      , pipes                 >= 4       && < 5\r\n      , pipes-bytestring     >= 2       && < 3\r\n      , pipes-csv\r\n      , cassava\r\n      , vector\r\n      , bytestring\r\n      , test-framework       >= 0.6\r\n      , test-framework-hunit >= 0.2\r\n~~~\r\n\r\ntransforms to an illegal section whose type has \"-\":\r\n\r\n~~~\r\ntest-suite hunit\r\n\r\n    if !flag(test-hunit)\r\n        type: -\r\n        buildable: False\r\n    else\r\n        build-depends: base -any, HUnit >=1.2, pipes >=4 && <5,\r\n                       pipes-bytestring >=2 && <3, pipes-csv -any, cassava -any,\r\n                       vector -any, bytestring -any, test-framework >=0.6,\r\n                       test-framework-hunit >=0.2\r\n        type: -\r\n        buildable: True\r\n    type: exitcode-stdio-1.0\r\n    main-is: test-pipes-csv.hs\r\n    buildable: True\r\n    hs-source-dirs: test\r\n    ghc-options: -w -threaded -rtsopts -with-rtsopts=-N\r\n~~~\r\n"},"comment":{"url":"https://api.github.com/repos/peti/jailbreak-cabal/issues/comments/69467045","html_url":"https://github.com/peti/jailbreak-cabal/issues/2#issuecomment-69467045","issue_url":"https://api.github.com/repos/peti/jailbreak-cabal/issues/2","id":69467045,"user":{"login":"peti","id":28323,"avatar_url":"https://avatars.githubusercontent.com/u/28323?v=3","gravatar_id":"","url":"https://api.github.com/users/peti","html_url":"https://github.com/peti","followers_url":"https://api.github.com/users/peti/followers","following_url":"https://api.github.com/users/peti/following{/other_user}","gists_url":"https://api.github.com/users/peti/gists{/gist_id}","starred_url":"https://api.github.com/users/peti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peti/subscriptions","organizations_url":"https://api.github.com/users/peti/orgs","repos_url":"https://api.github.com/users/peti/repos","events_url":"https://api.github.com/users/peti/events{/privacy}","received_events_url":"https://api.github.com/users/peti/received_events","type":"User","site_admin":false},"created_at":"2015-01-10T18:49:40Z","updated_at":"2015-01-10T18:49:40Z","body":"IMHO, the issue has caused by a bug in the version of Cabal that was used at the time. I can no longer re-produce this error with any recent build of jailbreak-cabal (which now uses Cabal >= 1.18.x)."}}