{"action":"created","issue":{"url":"https://api.github.com/repos/purescript/purescript/issues/3445","repository_url":"https://api.github.com/repos/purescript/purescript","labels_url":"https://api.github.com/repos/purescript/purescript/issues/3445/labels{/name}","comments_url":"https://api.github.com/repos/purescript/purescript/issues/3445/comments","events_url":"https://api.github.com/repos/purescript/purescript/issues/3445/events","html_url":"https://github.com/purescript/purescript/pull/3445","id":372390182,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NTg2NTY3","number":3445,"title":"Fix ST magic-do and inlining","user":{"login":"natefaubion","id":144058,"node_id":"MDQ6VXNlcjE0NDA1OA==","avatar_url":"https://avatars1.githubusercontent.com/u/144058?v=4","gravatar_id":"","url":"https://api.github.com/users/natefaubion","html_url":"https://github.com/natefaubion","followers_url":"https://api.github.com/users/natefaubion/followers","following_url":"https://api.github.com/users/natefaubion/following{/other_user}","gists_url":"https://api.github.com/users/natefaubion/gists{/gist_id}","starred_url":"https://api.github.com/users/natefaubion/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natefaubion/subscriptions","organizations_url":"https://api.github.com/users/natefaubion/orgs","repos_url":"https://api.github.com/users/natefaubion/repos","events_url":"https://api.github.com/users/natefaubion/events{/privacy}","received_events_url":"https://api.github.com/users/natefaubion/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-22T04:19:11Z","updated_at":"2018-10-22T10:07:31Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/purescript/purescript/pulls/3445","html_url":"https://github.com/purescript/purescript/pull/3445","diff_url":"https://github.com/purescript/purescript/pull/3445.diff","patch_url":"https://github.com/purescript/purescript/pull/3445.patch"},"body":"Example of output:\r\n```js\r\nvar sumOfSquares = (function __do() {\r\n    var v = {\r\n        value: 0\r\n    };\r\n    var loop = function (v1) {\r\n        if (v1 === 0) {\r\n            return Control_Monad_ST_Internal.read(v);\r\n        };\r\n        return function __do() {\r\n            var v2 = v.value = (function (v2) {\r\n                return v2 + (v1 * v1 | 0) | 0;\r\n            })(v.value);\r\n            return loop(v1 - 1 | 0)();\r\n        };\r\n    };\r\n    return loop(100)();\r\n})();\r\nvar main = Effect_Console.logShow(Data_Show.showInt)(sumOfSquares);\r\nvar counter = (function __do() {\r\n    var v = 0;\r\n    (function () {\r\n        while ((function __do() {\r\n            return v < 10;\r\n        })()) {\r\n            (function __do() {\r\n                var v1 = v = (function (v1) {\r\n                    return v1 + 1 | 0;\r\n                })(v);\r\n                return Data_Unit.unit;\r\n            })();\r\n        };\r\n        return {};\r\n    })();\r\n    return v;\r\n})();\r\n```"},"comment":{"url":"https://api.github.com/repos/purescript/purescript/issues/comments/431793195","html_url":"https://github.com/purescript/purescript/pull/3445#issuecomment-431793195","issue_url":"https://api.github.com/repos/purescript/purescript/issues/3445","id":431793195,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTc5MzE5NQ==","user":{"login":"kRITZCREEK","id":6189397,"node_id":"MDQ6VXNlcjYxODkzOTc=","avatar_url":"https://avatars0.githubusercontent.com/u/6189397?v=4","gravatar_id":"","url":"https://api.github.com/users/kRITZCREEK","html_url":"https://github.com/kRITZCREEK","followers_url":"https://api.github.com/users/kRITZCREEK/followers","following_url":"https://api.github.com/users/kRITZCREEK/following{/other_user}","gists_url":"https://api.github.com/users/kRITZCREEK/gists{/gist_id}","starred_url":"https://api.github.com/users/kRITZCREEK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kRITZCREEK/subscriptions","organizations_url":"https://api.github.com/users/kRITZCREEK/orgs","repos_url":"https://api.github.com/users/kRITZCREEK/repos","events_url":"https://api.github.com/users/kRITZCREEK/events{/privacy}","received_events_url":"https://api.github.com/users/kRITZCREEK/received_events","type":"User","site_admin":false},"created_at":"2018-10-22T10:07:31Z","updated_at":"2018-10-22T10:07:31Z","author_association":"MEMBER","body":"How would you feel about adding a test that overflows if the optimization ever stops working?"}}
{"actor":{"display_login":"kRITZCREEK"}}