{"action":"created","issue":{"url":"https://api.github.com/repos/purescript/purescript/issues/1056","labels_url":"https://api.github.com/repos/purescript/purescript/issues/1056/labels{/name}","comments_url":"https://api.github.com/repos/purescript/purescript/issues/1056/comments","events_url":"https://api.github.com/repos/purescript/purescript/issues/1056/events","html_url":"https://github.com/purescript/purescript/pull/1056","id":69271337,"number":1056,"title":"Optimise (f <<< g $ x) as (f (g x))","user":{"login":"puffnfresh","id":37715,"avatar_url":"https://avatars.githubusercontent.com/u/37715?v=3","gravatar_id":"","url":"https://api.github.com/users/puffnfresh","html_url":"https://github.com/puffnfresh","followers_url":"https://api.github.com/users/puffnfresh/followers","following_url":"https://api.github.com/users/puffnfresh/following{/other_user}","gists_url":"https://api.github.com/users/puffnfresh/gists{/gist_id}","starred_url":"https://api.github.com/users/puffnfresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puffnfresh/subscriptions","organizations_url":"https://api.github.com/users/puffnfresh/orgs","repos_url":"https://api.github.com/users/puffnfresh/repos","events_url":"https://api.github.com/users/puffnfresh/events{/privacy}","received_events_url":"https://api.github.com/users/puffnfresh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-18T05:28:41Z","updated_at":"2015-04-18T05:29:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/purescript/purescript/pulls/1056","html_url":"https://github.com/purescript/purescript/pull/1056","diff_url":"https://github.com/purescript/purescript/pull/1056.diff","patch_url":"https://github.com/purescript/purescript/pull/1056.patch"},"body":"When writing PureScript code like:\r\n\r\n    not <<< not $ id true\r\n\r\nWe see a few function calls:\r\n\r\n    Prelude[\"<<<\"](Prelude.semigroupoidArr)\r\n        (Prelude.not(Prelude.boolLikeBoolean))\r\n        (Prelude.not(Prelude.boolLikeBoolean))\r\n        (Prelude.id(Prelude.categoryArr)(\r\n            true));\r\n\r\nWe now see something very straight forward:\r\n\r\n    !!Prelude.id(Prelude.categoryArr)(true);\r\n\r\nThe implementation of this optimisation contains a lot of similarities\r\nto the common binary operator inlining. We should extract some\r\nfunctions out in another commit."},"comment":{"url":"https://api.github.com/repos/purescript/purescript/issues/comments/94130230","html_url":"https://github.com/purescript/purescript/pull/1056#issuecomment-94130230","issue_url":"https://api.github.com/repos/purescript/purescript/issues/1056","id":94130230,"user":{"login":"puffnfresh","id":37715,"avatar_url":"https://avatars.githubusercontent.com/u/37715?v=3","gravatar_id":"","url":"https://api.github.com/users/puffnfresh","html_url":"https://github.com/puffnfresh","followers_url":"https://api.github.com/users/puffnfresh/followers","following_url":"https://api.github.com/users/puffnfresh/following{/other_user}","gists_url":"https://api.github.com/users/puffnfresh/gists{/gist_id}","starred_url":"https://api.github.com/users/puffnfresh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puffnfresh/subscriptions","organizations_url":"https://api.github.com/users/puffnfresh/orgs","repos_url":"https://api.github.com/users/puffnfresh/repos","events_url":"https://api.github.com/users/puffnfresh/events{/privacy}","received_events_url":"https://api.github.com/users/puffnfresh/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T05:29:45Z","updated_at":"2015-04-18T05:29:45Z","body":"Hacked this up pretty quick and it's getting late. Haven't even run tests yet, just putting my work somewhere to track early."}}