{"action":"created","issue":{"url":"https://api.github.com/repos/bodil/purescript-observable/issues/1","repository_url":"https://api.github.com/repos/bodil/purescript-observable","labels_url":"https://api.github.com/repos/bodil/purescript-observable/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/bodil/purescript-observable/issues/1/comments","events_url":"https://api.github.com/repos/bodil/purescript-observable/issues/1/events","html_url":"https://github.com/bodil/purescript-observable/issues/1","id":174915499,"number":1,"title":"Effectful bind?","user":{"login":"justinwoo","id":2396926,"avatar_url":"https://avatars.githubusercontent.com/u/2396926?v=3","gravatar_id":"","url":"https://api.github.com/users/justinwoo","html_url":"https://github.com/justinwoo","followers_url":"https://api.github.com/users/justinwoo/followers","following_url":"https://api.github.com/users/justinwoo/following{/other_user}","gists_url":"https://api.github.com/users/justinwoo/gists{/gist_id}","starred_url":"https://api.github.com/users/justinwoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinwoo/subscriptions","organizations_url":"https://api.github.com/users/justinwoo/orgs","repos_url":"https://api.github.com/users/justinwoo/repos","events_url":"https://api.github.com/users/justinwoo/events{/privacy}","received_events_url":"https://api.github.com/users/justinwoo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-03T20:22:35Z","updated_at":"2016-09-05T13:48:12Z","closed_at":null,"body":"Would probably have to be a new method, but would an effectual bind be okay to have in the library? I'm currently doing things like this:\r\n\r\n```purescript\r\nlet results = (requests <|> timer) >>= \\request ->\r\n    unsafePerformEff $ fromCallback $ runFn3 runTorscraper torscraperPath request\r\n```\r\n\r\n[source](https://github.com/justinwoo/simple-rpc-telegram-bot/blob/387377c19cf243b3854e8d9666909d49a6b7e77c/src/Main.purs#L118-L127)"},"comment":{"url":"https://api.github.com/repos/bodil/purescript-observable/issues/comments/244751139","html_url":"https://github.com/bodil/purescript-observable/issues/1#issuecomment-244751139","issue_url":"https://api.github.com/repos/bodil/purescript-observable/issues/1","id":244751139,"user":{"login":"justinwoo","id":2396926,"avatar_url":"https://avatars.githubusercontent.com/u/2396926?v=3","gravatar_id":"","url":"https://api.github.com/users/justinwoo","html_url":"https://github.com/justinwoo","followers_url":"https://api.github.com/users/justinwoo/followers","following_url":"https://api.github.com/users/justinwoo/following{/other_user}","gists_url":"https://api.github.com/users/justinwoo/gists{/gist_id}","starred_url":"https://api.github.com/users/justinwoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinwoo/subscriptions","organizations_url":"https://api.github.com/users/justinwoo/orgs","repos_url":"https://api.github.com/users/justinwoo/repos","events_url":"https://api.github.com/users/justinwoo/events{/privacy}","received_events_url":"https://api.github.com/users/justinwoo/received_events","type":"User","site_admin":false},"created_at":"2016-09-05T13:48:12Z","updated_at":"2016-09-05T13:48:12Z","body":"I'm using my hacky version [here](https://github.com/justinwoo/simple-rpc-telegram-bot/blob/master/src/Main.purs#L105-L124), where I have a chat bot that will run another program on an interval and on request for its output. The result of running the other program is then used to send a message, the gist of it being:\r\n\r\n```purescript\r\n  let results = (requests <|> timer) `bindEff` \\request ->\r\n    liftAff $ runTorscraper torscraperPath request\r\n  subscribe\r\n    { next: (sendMessage bot)\r\n    -- ...\r\n    } results\r\n```"}}
{"actor":{"display_login":"justinwoo"}}