{"action":"created","issue":{"url":"https://api.github.com/repos/purescript/purescript/issues/1846","labels_url":"https://api.github.com/repos/purescript/purescript/issues/1846/labels{/name}","comments_url":"https://api.github.com/repos/purescript/purescript/issues/1846/comments","events_url":"https://api.github.com/repos/purescript/purescript/issues/1846/events","html_url":"https://github.com/purescript/purescript/issues/1846","id":128334898,"number":1846,"title":"Allow using (- 1) for operator section?","user":{"login":"tfausak","id":408753,"avatar_url":"https://avatars.githubusercontent.com/u/408753?v=3","gravatar_id":"","url":"https://api.github.com/users/tfausak","html_url":"https://github.com/tfausak","followers_url":"https://api.github.com/users/tfausak/followers","following_url":"https://api.github.com/users/tfausak/following{/other_user}","gists_url":"https://api.github.com/users/tfausak/gists{/gist_id}","starred_url":"https://api.github.com/users/tfausak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tfausak/subscriptions","organizations_url":"https://api.github.com/users/tfausak/orgs","repos_url":"https://api.github.com/users/tfausak/repos","events_url":"https://api.github.com/users/tfausak/events{/privacy}","received_events_url":"https://api.github.com/users/tfausak/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/purescript/purescript/labels/enhancement","name":"enhancement","color":"84b6eb"},{"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/11","html_url":"https://github.com/purescript/purescript/milestones/0.8.0","labels_url":"https://api.github.com/repos/purescript/purescript/milestones/11/labels","id":1073621,"number":11,"title":"0.8.0","description":"Focus areas:\r\n\r\n- Bug fixes\r\n- Performance\r\n- Improving error messages\r\n\r\nEverything else is being bumped to 0.9.","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":2,"closed_issues":194,"state":"open","created_at":"2015-04-18T23:12:02Z","updated_at":"2016-01-23T18:04:57Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2016-01-23T15:45:12Z","updated_at":"2016-01-23T18:57:52Z","closed_at":null,"body":"I would like to be able to use `(- 1)` as an operator section that subtracts one. Currently it is parsed as `negate 1`. I still want to be able to negate things with a prefix `-` operator. I think both could be allowed by using whitespace. If there is a space, use the `-` binary operator. If there's not a space, use `negate`. \r\n\r\n``` purescript\r\n(-1)    -- negate 1\r\n(- 1) x -- x - 1 -- (`sub` 1)\r\n```\r\n\r\nObviously this behaves differently than all other operators. But I would prefer it to using `sub` as a makeshift section."},"comment":{"url":"https://api.github.com/repos/purescript/purescript/issues/comments/174212391","html_url":"https://github.com/purescript/purescript/issues/1846#issuecomment-174212391","issue_url":"https://api.github.com/repos/purescript/purescript/issues/1846","id":174212391,"user":{"login":"zudov","id":2613966,"avatar_url":"https://avatars.githubusercontent.com/u/2613966?v=3","gravatar_id":"","url":"https://api.github.com/users/zudov","html_url":"https://github.com/zudov","followers_url":"https://api.github.com/users/zudov/followers","following_url":"https://api.github.com/users/zudov/following{/other_user}","gists_url":"https://api.github.com/users/zudov/gists{/gist_id}","starred_url":"https://api.github.com/users/zudov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zudov/subscriptions","organizations_url":"https://api.github.com/users/zudov/orgs","repos_url":"https://api.github.com/users/zudov/repos","events_url":"https://api.github.com/users/zudov/events{/privacy}","received_events_url":"https://api.github.com/users/zudov/received_events","type":"User","site_admin":false},"created_at":"2016-01-23T18:57:52Z","updated_at":"2016-01-23T18:57:52Z","body":"@tfausak It probably won't hurt to disallow operators without spaces around, not sure how much code that would break though."}}