{"action":"created","issue":{"url":"https://api.github.com/repos/ghcjs/ghcjs/issues/375","labels_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/375/comments","events_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/375/events","html_url":"https://github.com/ghcjs/ghcjs/issues/375","id":97110998,"number":375,"title":"divide by zero handler","user":{"login":"hellerve","id":7725188,"avatar_url":"https://avatars.githubusercontent.com/u/7725188?v=3","gravatar_id":"","url":"https://api.github.com/users/hellerve","html_url":"https://github.com/hellerve","followers_url":"https://api.github.com/users/hellerve/followers","following_url":"https://api.github.com/users/hellerve/following{/other_user}","gists_url":"https://api.github.com/users/hellerve/gists{/gist_id}","starred_url":"https://api.github.com/users/hellerve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellerve/subscriptions","organizations_url":"https://api.github.com/users/hellerve/orgs","repos_url":"https://api.github.com/users/hellerve/repos","events_url":"https://api.github.com/users/hellerve/events{/privacy}","received_events_url":"https://api.github.com/users/hellerve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-24T18:32:58Z","updated_at":"2015-08-31T22:13:01Z","closed_at":null,"body":"Hey,\r\n\r\nContext:\r\nI am working on a little programming language in Haskell. I cross-compiled it using ghcjs and (almost) everything works as expected. The only thing that seems to differ in behaviour is the exception handler hooked into the REPL. It looks like this:\r\n```haskell\r\nhandler msg@(SomeException _) = return $ \"Caught error: \" ++ show (msg::SomeException)\r\n```\r\nand catches every exception when compiled for desktop, including divides by zero.\r\n\r\nHowever, when i try to reproduce this (the divide by zero) within the web REPL, the error is propagated and the REPL dies.\r\n\r\nHow can I best resolve this? Is this a bug?\r\n\r\nCheers"},"comment":{"url":"https://api.github.com/repos/ghcjs/ghcjs/issues/comments/136515361","html_url":"https://github.com/ghcjs/ghcjs/issues/375#issuecomment-136515361","issue_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/375","id":136515361,"user":{"login":"luite","id":354096,"avatar_url":"https://avatars.githubusercontent.com/u/354096?v=3","gravatar_id":"","url":"https://api.github.com/users/luite","html_url":"https://github.com/luite","followers_url":"https://api.github.com/users/luite/followers","following_url":"https://api.github.com/users/luite/following{/other_user}","gists_url":"https://api.github.com/users/luite/gists{/gist_id}","starred_url":"https://api.github.com/users/luite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luite/subscriptions","organizations_url":"https://api.github.com/users/luite/orgs","repos_url":"https://api.github.com/users/luite/repos","events_url":"https://api.github.com/users/luite/events{/privacy}","received_events_url":"https://api.github.com/users/luite/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T22:13:01Z","updated_at":"2015-08-31T22:13:01Z","body":"ok, that'd would be great. I'm just trying to make sure that I don't miss anything important wrapping up the improved-base release"}}