{"action":"created","issue":{"url":"https://api.github.com/repos/ghcjs/ghcjs/issues/194","labels_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/194/comments","events_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/194/events","html_url":"https://github.com/ghcjs/ghcjs/issues/194","id":36516028,"number":194,"title":"js interfacing via API","user":{"login":"fuzzthink","id":20699,"avatar_url":"https://avatars.githubusercontent.com/u/20699?v=3","gravatar_id":"","url":"https://api.github.com/users/fuzzthink","html_url":"https://github.com/fuzzthink","followers_url":"https://api.github.com/users/fuzzthink/followers","following_url":"https://api.github.com/users/fuzzthink/following{/other_user}","gists_url":"https://api.github.com/users/fuzzthink/gists{/gist_id}","starred_url":"https://api.github.com/users/fuzzthink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fuzzthink/subscriptions","organizations_url":"https://api.github.com/users/fuzzthink/orgs","repos_url":"https://api.github.com/users/fuzzthink/repos","events_url":"https://api.github.com/users/fuzzthink/events{/privacy}","received_events_url":"https://api.github.com/users/fuzzthink/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ghcjs/ghcjs/labels/feature","name":"feature","color":"0b02e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":17,"created_at":"2014-06-25T19:53:01Z","updated_at":"2015-10-13T00:47:06Z","closed_at":null,"body":"It seems the examples in ghcjs-examples does everything in haskell.  I'd like use ghcjs so I can write the \"core\" logic in haskell and leave the frontend stuff in js.  How do I go about exposing a haskell module so it's accessible globally in js?  How can I call a function say that accepts a list (or json) in this exposed module?\r\n\r\nSome simple sample code would be much appreciated.\r\n\r\nthanks.\r\nps. http://weblog.luite.com/wordpress/?p=14  seems to be down."},"comment":{"url":"https://api.github.com/repos/ghcjs/ghcjs/issues/comments/147559779","html_url":"https://github.com/ghcjs/ghcjs/issues/194#issuecomment-147559779","issue_url":"https://api.github.com/repos/ghcjs/ghcjs/issues/194","id":147559779,"user":{"login":"mkeeter","id":745333,"avatar_url":"https://avatars.githubusercontent.com/u/745333?v=3","gravatar_id":"","url":"https://api.github.com/users/mkeeter","html_url":"https://github.com/mkeeter","followers_url":"https://api.github.com/users/mkeeter/followers","following_url":"https://api.github.com/users/mkeeter/following{/other_user}","gists_url":"https://api.github.com/users/mkeeter/gists{/gist_id}","starred_url":"https://api.github.com/users/mkeeter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkeeter/subscriptions","organizations_url":"https://api.github.com/users/mkeeter/orgs","repos_url":"https://api.github.com/users/mkeeter/repos","events_url":"https://api.github.com/users/mkeeter/events{/privacy}","received_events_url":"https://api.github.com/users/mkeeter/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T00:47:06Z","updated_at":"2015-10-13T00:47:06Z","body":"Has there been any progress on this feature?  The StackOverflow example above doesn't work anymore.\r\n\r\nAt first, it failed because GHCJS couldn't find `setProp`.  Once I added an import of`JavaScript.Object.Internal`; it continued not to work because the API is different from what it was in that example."}}