{"action":"created","issue":{"url":"https://api.github.com/repos/DanielGronau/highj/issues/12","repository_url":"https://api.github.com/repos/DanielGronau/highj","labels_url":"https://api.github.com/repos/DanielGronau/highj/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/DanielGronau/highj/issues/12/comments","events_url":"https://api.github.com/repos/DanielGronau/highj/issues/12/events","html_url":"https://github.com/DanielGronau/highj/issues/12","id":148291681,"number":12,"title":"[Idea] Steal/Borrow the MonadRec idea from Purescript","user":{"login":"clinuxrulz","id":278292,"avatar_url":"https://avatars.githubusercontent.com/u/278292?v=3","gravatar_id":"","url":"https://api.github.com/users/clinuxrulz","html_url":"https://github.com/clinuxrulz","followers_url":"https://api.github.com/users/clinuxrulz/followers","following_url":"https://api.github.com/users/clinuxrulz/following{/other_user}","gists_url":"https://api.github.com/users/clinuxrulz/gists{/gist_id}","starred_url":"https://api.github.com/users/clinuxrulz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clinuxrulz/subscriptions","organizations_url":"https://api.github.com/users/clinuxrulz/orgs","repos_url":"https://api.github.com/users/clinuxrulz/repos","events_url":"https://api.github.com/users/clinuxrulz/events{/privacy}","received_events_url":"https://api.github.com/users/clinuxrulz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-14T08:39:26Z","updated_at":"2016-04-24T19:14:49Z","closed_at":null,"body":"Purescript is one of those languages that is like Haskell and compiles to JavaScript.\r\n\r\nJavascript has no TCO just like Java.\r\n\r\nPurescript has a novel solution of MonadRec (which is possible to define for ALL monads), that gives us TCO back (stops consuming additional stack with each recursion.)\r\n\r\nhttps://pursuit.purescript.org/packages/purescript-tailrec/0.3.1/docs/Control.Monad.Rec.Class\r\n\r\nWe should probably credit Phil Freeman in the source header if we use it."},"comment":{"url":"https://api.github.com/repos/DanielGronau/highj/issues/comments/214024430","html_url":"https://github.com/DanielGronau/highj/issues/12#issuecomment-214024430","issue_url":"https://api.github.com/repos/DanielGronau/highj/issues/12","id":214024430,"user":{"login":"DanielGronau","id":2665695,"avatar_url":"https://avatars.githubusercontent.com/u/2665695?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielGronau","html_url":"https://github.com/DanielGronau","followers_url":"https://api.github.com/users/DanielGronau/followers","following_url":"https://api.github.com/users/DanielGronau/following{/other_user}","gists_url":"https://api.github.com/users/DanielGronau/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielGronau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielGronau/subscriptions","organizations_url":"https://api.github.com/users/DanielGronau/orgs","repos_url":"https://api.github.com/users/DanielGronau/repos","events_url":"https://api.github.com/users/DanielGronau/events{/privacy}","received_events_url":"https://api.github.com/users/DanielGronau/received_events","type":"User","site_admin":false},"created_at":"2016-04-24T19:14:49Z","updated_at":"2016-04-24T19:14:49Z","body":"I added MonadRec to ListMonadPlus. I implemented it by iterating and flatMapping over and over until there are no more Lefts in the list. Maybe you could have a look if it makes some sense."}}