{"action":"created","issue":{"url":"https://api.github.com/repos/purescript/purescript/issues/2204","repository_url":"https://api.github.com/repos/purescript/purescript","labels_url":"https://api.github.com/repos/purescript/purescript/issues/2204/labels{/name}","comments_url":"https://api.github.com/repos/purescript/purescript/issues/2204/comments","events_url":"https://api.github.com/repos/purescript/purescript/issues/2204/events","html_url":"https://github.com/purescript/purescript/issues/2204","id":161566213,"number":2204,"title":"Support ES6 arrow syntax in psc output for currying","user":{"login":"wegry","id":5156873,"avatar_url":"https://avatars.githubusercontent.com/u/5156873?v=3","gravatar_id":"","url":"https://api.github.com/users/wegry","html_url":"https://github.com/wegry","followers_url":"https://api.github.com/users/wegry/followers","following_url":"https://api.github.com/users/wegry/following{/other_user}","gists_url":"https://api.github.com/users/wegry/gists{/gist_id}","starred_url":"https://api.github.com/users/wegry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wegry/subscriptions","organizations_url":"https://api.github.com/users/wegry/orgs","repos_url":"https://api.github.com/users/wegry/repos","events_url":"https://api.github.com/users/wegry/events{/privacy}","received_events_url":"https://api.github.com/users/wegry/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/purescript/purescript/labels/codegen","name":"codegen","color":"fbca04"},{"url":"https://api.github.com/repos/purescript/purescript/labels/easy","name":"easy","color":"bfe5bf"},{"url":"https://api.github.com/repos/purescript/purescript/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/purescript/purescript/milestones/8","html_url":"https://github.com/purescript/purescript/milestones/Ideas","labels_url":"https://api.github.com/repos/purescript/purescript/milestones/8/labels","id":714450,"number":8,"title":"Ideas","description":"Ideas which may or may not be implemented, for discussion.","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":48,"closed_issues":71,"state":"open","created_at":"2014-07-08T20:33:33Z","updated_at":"2016-06-21T23:57:57Z","due_on":null,"closed_at":null},"comments":32,"created_at":"2016-06-21T23:56:06Z","updated_at":"2016-06-23T17:14:15Z","closed_at":null,"body":"In Purescript 0.8, a Purescript function like `w x y z = z` is output as \r\n```\r\nvar w = function (x) {\r\n     return function (y) {\r\n        return function (z) {\r\n            return z;\r\n        };\r\n    };\r\n};\r\n// 122 bytes\r\n```\r\nAn option would be added to psc to output this instead with `=>` and instead be output as the following: `var w = x => y => z => z; // 25 bytes`\r\n\r\nIt might be easier to have the final function always be wrapped in curly braces:\r\n```\r\nvar w = x => y => z => { \r\n    return z;\r\n}; // 42 bytes\r\n```\r\n\r\nAn identity function would go from \r\n```\r\nvar id = function (x) {\r\n    return x;\r\n}; // 40 bytes\r\n```\r\nto `var id = x => x; // 16 bytes`"},"comment":{"url":"https://api.github.com/repos/purescript/purescript/issues/comments/228118379","html_url":"https://github.com/purescript/purescript/issues/2204#issuecomment-228118379","issue_url":"https://api.github.com/repos/purescript/purescript/issues/2204","id":228118379,"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-06-23T17:14:15Z","updated_at":"2016-06-23T17:14:15Z","body":"I'd contend arrows is subsumed by #2207 too 👍"}}
{"actor":{"display_login":"AppShipIt"}}