{"action":"created","issue":{"url":"https://api.github.com/repos/purescript/purescript/issues/1846","repository_url":"https://api.github.com/repos/purescript/purescript","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":"closed","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/purescript/purescript/milestones/13","html_url":"https://github.com/purescript/purescript/milestones/0.8.1","labels_url":"https://api.github.com/repos/purescript/purescript/milestones/13/labels","id":1554337,"number":13,"title":"0.8.1","description":"","creator":{"login":"garyb","id":693642,"avatar_url":"https://avatars.githubusercontent.com/u/693642?v=3","gravatar_id":"","url":"https://api.github.com/users/garyb","html_url":"https://github.com/garyb","followers_url":"https://api.github.com/users/garyb/followers","following_url":"https://api.github.com/users/garyb/following{/other_user}","gists_url":"https://api.github.com/users/garyb/gists{/gist_id}","starred_url":"https://api.github.com/users/garyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garyb/subscriptions","organizations_url":"https://api.github.com/users/garyb/orgs","repos_url":"https://api.github.com/users/garyb/repos","events_url":"https://api.github.com/users/garyb/events{/privacy}","received_events_url":"https://api.github.com/users/garyb/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":5,"state":"closed","created_at":"2016-01-31T22:41:26Z","updated_at":"2016-03-02T03:43:19Z","due_on":null,"closed_at":"2016-03-02T03:43:19Z"},"comments":68,"created_at":"2016-01-23T15:45:12Z","updated_at":"2016-03-16T22:07:27Z","closed_at":"2016-02-21T00:56:00Z","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/197574099","html_url":"https://github.com/purescript/purescript/issues/1846#issuecomment-197574099","issue_url":"https://api.github.com/repos/purescript/purescript/issues/1846","id":197574099,"user":{"login":"AppShipIt","id":48431,"avatar_url":"https://avatars.githubusercontent.com/u/48431?v=3","gravatar_id":"","url":"https://api.github.com/users/AppShipIt","html_url":"https://github.com/AppShipIt","followers_url":"https://api.github.com/users/AppShipIt/followers","following_url":"https://api.github.com/users/AppShipIt/following{/other_user}","gists_url":"https://api.github.com/users/AppShipIt/gists{/gist_id}","starred_url":"https://api.github.com/users/AppShipIt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AppShipIt/subscriptions","organizations_url":"https://api.github.com/users/AppShipIt/orgs","repos_url":"https://api.github.com/users/AppShipIt/repos","events_url":"https://api.github.com/users/AppShipIt/events{/privacy}","received_events_url":"https://api.github.com/users/AppShipIt/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T22:07:27Z","updated_at":"2016-03-16T22:07:27Z","body":"> Yeah, I don't know, maybe we can reopen now that _s have become more prevalent in the syntax.\r\n\r\n@garyb I intend to read it fully and talk offline before bringing it up formally. At the very least I now empathize with your Scala argument. Your example makes sense too whereas perhaps the it'd be less an expectation with nested operators and `case`s. Thanks!"}}