{"action":"created","issue":{"url":"https://api.github.com/repos/purescript/purescript/issues/2100","repository_url":"https://api.github.com/repos/purescript/purescript","labels_url":"https://api.github.com/repos/purescript/purescript/issues/2100/labels{/name}","comments_url":"https://api.github.com/repos/purescript/purescript/issues/2100/comments","events_url":"https://api.github.com/repos/purescript/purescript/issues/2100/events","html_url":"https://github.com/purescript/purescript/issues/2100","id":153669074,"number":2100,"title":"Cannot use a literal negative Int without parens","user":{"login":"anttih","id":308,"avatar_url":"https://avatars.githubusercontent.com/u/308?v=3","gravatar_id":"","url":"https://api.github.com/users/anttih","html_url":"https://github.com/anttih","followers_url":"https://api.github.com/users/anttih/followers","following_url":"https://api.github.com/users/anttih/following{/other_user}","gists_url":"https://api.github.com/users/anttih/gists{/gist_id}","starred_url":"https://api.github.com/users/anttih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anttih/subscriptions","organizations_url":"https://api.github.com/users/anttih/orgs","repos_url":"https://api.github.com/users/anttih/repos","events_url":"https://api.github.com/users/anttih/events{/privacy}","received_events_url":"https://api.github.com/users/anttih/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/purescript/purescript/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/purescript/purescript/labels/syntax","name":"syntax","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/purescript/purescript/milestones/12","html_url":"https://github.com/purescript/purescript/milestones/Discussion","labels_url":"https://api.github.com/repos/purescript/purescript/milestones/12/labels","id":1373373,"number":12,"title":"Discussion","description":"Longer discussions on the direction of the project, etc.","creator":{"login":"paf31","id":630306,"avatar_url":"https://avatars.githubusercontent.com/u/630306?v=3","gravatar_id":"","url":"https://api.github.com/users/paf31","html_url":"https://github.com/paf31","followers_url":"https://api.github.com/users/paf31/followers","following_url":"https://api.github.com/users/paf31/following{/other_user}","gists_url":"https://api.github.com/users/paf31/gists{/gist_id}","starred_url":"https://api.github.com/users/paf31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paf31/subscriptions","organizations_url":"https://api.github.com/users/paf31/orgs","repos_url":"https://api.github.com/users/paf31/repos","events_url":"https://api.github.com/users/paf31/events{/privacy}","received_events_url":"https://api.github.com/users/paf31/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":16,"state":"open","created_at":"2015-10-23T21:40:18Z","updated_at":"2016-05-08T19:52:26Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2016-05-08T18:04:47Z","updated_at":"2016-05-09T20:59:09Z","closed_at":null,"body":"```\r\n> show (-1)\r\n\"-1\"\r\n\r\n> show -1\r\nError found:\r\nin module $PSCI\r\nat  line 1, column 1 - line 1, column 7\r\n\r\n  Could not match type\r\n\r\n    Int\r\n\r\n  with type\r\n\r\n    _0 -> String\r\n\r\n\r\nwhile checking that type Int\r\n  is at least as general as type _0 -> String\r\nwhile checking that expression 1\r\n  has type _0 -> String\r\nin value declaration it\r\n\r\nwhere _0 is an unknown type\r\n```"},"comment":{"url":"https://api.github.com/repos/purescript/purescript/issues/comments/217987873","html_url":"https://github.com/purescript/purescript/issues/2100#issuecomment-217987873","issue_url":"https://api.github.com/repos/purescript/purescript/issues/2100","id":217987873,"user":{"login":"rgrempel","id":64381,"avatar_url":"https://avatars.githubusercontent.com/u/64381?v=3","gravatar_id":"","url":"https://api.github.com/users/rgrempel","html_url":"https://github.com/rgrempel","followers_url":"https://api.github.com/users/rgrempel/followers","following_url":"https://api.github.com/users/rgrempel/following{/other_user}","gists_url":"https://api.github.com/users/rgrempel/gists{/gist_id}","starred_url":"https://api.github.com/users/rgrempel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgrempel/subscriptions","organizations_url":"https://api.github.com/users/rgrempel/orgs","repos_url":"https://api.github.com/users/rgrempel/repos","events_url":"https://api.github.com/users/rgrempel/events{/privacy}","received_events_url":"https://api.github.com/users/rgrempel/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T20:59:09Z","updated_at":"2016-05-09T20:59:09Z","body":"Here's an example where it would be nice to be able to use negative literals without the parentheses. \r\n\r\nhttps://github.com/rgrempel/purescript-elm/blob/master/examples/Graphics/CollageExamples.purs#L659-L666\r\n\r\nNow, one wouldn't ideally be using Tuples here, and the negative literals do work better with records. But I've got other reasons why I'm using Tuples."}}