{"action":"created","issue":{"url":"https://api.github.com/repos/purescript/purescript/issues/1188","repository_url":"https://api.github.com/repos/purescript/purescript","labels_url":"https://api.github.com/repos/purescript/purescript/issues/1188/labels{/name}","comments_url":"https://api.github.com/repos/purescript/purescript/issues/1188/comments","events_url":"https://api.github.com/repos/purescript/purescript/issues/1188/events","html_url":"https://github.com/purescript/purescript/issues/1188","id":89902010,"number":1188,"title":"Suggested `const` rewrite","user":{"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},"labels":[{"url":"https://api.github.com/repos/purescript/purescript/labels/controversial","name":"controversial","color":"e11d21"},{"url":"https://api.github.com/repos/purescript/purescript/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/purescript/purescript/labels/optimizer","name":"optimizer","color":"006b75"}],"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":10,"closed_issues":15,"state":"open","created_at":"2015-10-23T21:40:18Z","updated_at":"2016-04-30T21:16:13Z","due_on":null,"closed_at":null},"comments":16,"created_at":"2015-06-21T12:01:46Z","updated_at":"2016-04-30T22:33:23Z","closed_at":null,"body":"When the right hand side of const is not a literal or variable, rewrite as `const x` as `\\_ -> x`."},"comment":{"url":"https://api.github.com/repos/purescript/purescript/issues/comments/216000022","html_url":"https://github.com/purescript/purescript/issues/1188#issuecomment-216000022","issue_url":"https://api.github.com/repos/purescript/purescript/issues/1188","id":216000022,"user":{"login":"rightfold","id":5132125,"avatar_url":"https://avatars.githubusercontent.com/u/5132125?v=3","gravatar_id":"","url":"https://api.github.com/users/rightfold","html_url":"https://github.com/rightfold","followers_url":"https://api.github.com/users/rightfold/followers","following_url":"https://api.github.com/users/rightfold/following{/other_user}","gists_url":"https://api.github.com/users/rightfold/gists{/gist_id}","starred_url":"https://api.github.com/users/rightfold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rightfold/subscriptions","organizations_url":"https://api.github.com/users/rightfold/orgs","repos_url":"https://api.github.com/users/rightfold/repos","events_url":"https://api.github.com/users/rightfold/events{/privacy}","received_events_url":"https://api.github.com/users/rightfold/received_events","type":"User","site_admin":false},"created_at":"2016-04-30T22:33:23Z","updated_at":"2016-04-30T22:33:23Z","body":"I think this optimization does make sense when the *left* argument *is* a variable or a literal."}}