{"action":"created","issue":{"url":"https://api.github.com/repos/ghcjs/ghcjs-base/issues/21","labels_url":"https://api.github.com/repos/ghcjs/ghcjs-base/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/ghcjs/ghcjs-base/issues/21/comments","events_url":"https://api.github.com/repos/ghcjs/ghcjs-base/issues/21/events","html_url":"https://github.com/ghcjs/ghcjs-base/issues/21","id":99821396,"number":21,"title":"improved-base wrapping problems","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},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-08T17:48:53Z","updated_at":"2015-10-06T14:35:21Z","closed_at":"2015-10-06T14:35:21Z","body":"When returning an unboxed tuple in the javascript FFI, wrapping is expected from the JS code, even for JSRef. This is not done correctly everywhere, and is a source for confusion.\r\n\r\nI'd like to change the convention to the following:\r\n\r\n  - Allow unboxed tuple returns of all ccall types, `JSRef` and `Any`\r\n  - wrapping is performed like for non-tuple returns\r\n  - `Any` is to be wrapped by the callee, it's safe to `unsafeCoerce` to the actual type (including pre-wrapped JSRef)\r\n\r\nThis will probably lead to temporary breakage between ghcjs and ghcjs-base, but the current implementation is also buggy so it's better to make the change now, rather then when unboxed tuples are used more in the wild.\r\n"},"comment":{"url":"https://api.github.com/repos/ghcjs/ghcjs-base/issues/comments/145875666","html_url":"https://github.com/ghcjs/ghcjs-base/issues/21#issuecomment-145875666","issue_url":"https://api.github.com/repos/ghcjs/ghcjs-base/issues/21","id":145875666,"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-10-06T14:35:21Z","updated_at":"2015-10-06T14:35:21Z","body":"All changes are in."}}