{"action":"created","issue":{"url":"https://api.github.com/repos/philopon/purescript-client-routing/issues/2","labels_url":"https://api.github.com/repos/philopon/purescript-client-routing/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/philopon/purescript-client-routing/issues/2/comments","events_url":"https://api.github.com/repos/philopon/purescript-client-routing/issues/2/events","html_url":"https://github.com/philopon/purescript-client-routing/issues/2","id":63590172,"number":2,"title":"Setting route from outside router definition?","user":{"login":"AKST","id":2638789,"avatar_url":"https://avatars.githubusercontent.com/u/2638789?v=3","gravatar_id":"","url":"https://api.github.com/users/AKST","html_url":"https://github.com/AKST","followers_url":"https://api.github.com/users/AKST/followers","following_url":"https://api.github.com/users/AKST/following{/other_user}","gists_url":"https://api.github.com/users/AKST/gists{/gist_id}","starred_url":"https://api.github.com/users/AKST/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AKST/subscriptions","organizations_url":"https://api.github.com/users/AKST/orgs","repos_url":"https://api.github.com/users/AKST/repos","events_url":"https://api.github.com/users/AKST/events{/privacy}","received_events_url":"https://api.github.com/users/AKST/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-22T23:31:44Z","updated_at":"2015-03-23T07:29:07Z","closed_at":null,"body":"Hey so wondering if there's a suggested approach for setting the route outside the router definition? Judging by the [type of `setRoute`](https://github.com/philopon/purescript-client-routing/blob/7c4a507c8e0b4091b018c91f3b15bd39cd2c8a65/docs/Network/Routing/Client.md#setroute-1), it looks like I need to do that in the route callback.\r\n\r\n```purescript\r\ntype SetRoute eff = String -> EffRouting eff Unit\r\n```\r\n\r\nHowever, I'd like to do that on a user interface event much like you in a MVC framework such as Ember.js ect. Is there a suggested method of achieving this from the Eff monad?\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/philopon/purescript-client-routing/issues/comments/84856082","html_url":"https://github.com/philopon/purescript-client-routing/issues/2#issuecomment-84856082","issue_url":"https://api.github.com/repos/philopon/purescript-client-routing/issues/2","id":84856082,"user":{"login":"AKST","id":2638789,"avatar_url":"https://avatars.githubusercontent.com/u/2638789?v=3","gravatar_id":"","url":"https://api.github.com/users/AKST","html_url":"https://github.com/AKST","followers_url":"https://api.github.com/users/AKST/followers","following_url":"https://api.github.com/users/AKST/following{/other_user}","gists_url":"https://api.github.com/users/AKST/gists{/gist_id}","starred_url":"https://api.github.com/users/AKST/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AKST/subscriptions","organizations_url":"https://api.github.com/users/AKST/orgs","repos_url":"https://api.github.com/users/AKST/repos","events_url":"https://api.github.com/users/AKST/events{/privacy}","received_events_url":"https://api.github.com/users/AKST/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T07:29:07Z","updated_at":"2015-03-23T07:29:07Z","body":"Whoops, wrong type. Will update in just a moment"}}