{"action":"created","issue":{"url":"https://api.github.com/repos/ghcjs/ghcjs/issues/366","labels_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/366/labels{/name}","comments_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/366/comments","events_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/366/events","html_url":"https://github.com/ghcjs/ghcjs/issues/366","id":94958832,"number":366,"title":"Runhaskell like interpreter for GHCJS","user":{"login":"wdanilo","id":1623053,"avatar_url":"https://avatars.githubusercontent.com/u/1623053?v=3","gravatar_id":"","url":"https://api.github.com/users/wdanilo","html_url":"https://github.com/wdanilo","followers_url":"https://api.github.com/users/wdanilo/followers","following_url":"https://api.github.com/users/wdanilo/following{/other_user}","gists_url":"https://api.github.com/users/wdanilo/gists{/gist_id}","starred_url":"https://api.github.com/users/wdanilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wdanilo/subscriptions","organizations_url":"https://api.github.com/users/wdanilo/orgs","repos_url":"https://api.github.com/users/wdanilo/repos","events_url":"https://api.github.com/users/wdanilo/events{/privacy}","received_events_url":"https://api.github.com/users/wdanilo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-14T14:36:59Z","updated_at":"2015-07-20T14:47:53Z","closed_at":null,"body":"Would it be possible to implement runhaskell-like interpreter for GHCJS? I would like to execute my code in the browser without waiting for the compilation. It would of course run slower, but we could then test our results much faster than waiting for regular compilation! :)"},"comment":{"url":"https://api.github.com/repos/ghcjs/ghcjs/issues/comments/122908261","html_url":"https://github.com/ghcjs/ghcjs/issues/366#issuecomment-122908261","issue_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/366","id":122908261,"user":{"login":"kfigiela","id":174118,"avatar_url":"https://avatars.githubusercontent.com/u/174118?v=3","gravatar_id":"","url":"https://api.github.com/users/kfigiela","html_url":"https://github.com/kfigiela","followers_url":"https://api.github.com/users/kfigiela/followers","following_url":"https://api.github.com/users/kfigiela/following{/other_user}","gists_url":"https://api.github.com/users/kfigiela/gists{/gist_id}","starred_url":"https://api.github.com/users/kfigiela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kfigiela/subscriptions","organizations_url":"https://api.github.com/users/kfigiela/orgs","repos_url":"https://api.github.com/users/kfigiela/repos","events_url":"https://api.github.com/users/kfigiela/events{/privacy}","received_events_url":"https://api.github.com/users/kfigiela/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T14:47:53Z","updated_at":"2015-07-20T14:47:53Z","body":"@luite, this is what we were looking for. The only feature that we're missing is that browser client should be able to request new code by triggering\r\n\r\n```\r\n:reload\r\n:main\r\n```\r\n\r\nwhen it connects. \r\n\r\nIn our usecase we use [brunch](http://brunch.io) to assemble our webapp. It reloads page in the browser after each change so you can see the results of any chagne almost instantly. I added GHCJSi client code to the development version of our app (instead of ghcjs generated code). When the browser reconnects to GHCI server it has no Haskell code to run. To initialize the webapp I implemented small plugin to brunch to actually spawn `ghcjs --interactive` and send `:reload` and `:main` on browser request. In that way we get very fast time from [Save] in the editor to seeing actual result in the browser."}}