{"action":"created","issue":{"url":"https://api.github.com/repos/fable-compiler/Fable/issues/953","repository_url":"https://api.github.com/repos/fable-compiler/Fable","labels_url":"https://api.github.com/repos/fable-compiler/Fable/issues/953/labels{/name}","comments_url":"https://api.github.com/repos/fable-compiler/Fable/issues/953/comments","events_url":"https://api.github.com/repos/fable-compiler/Fable/issues/953/events","html_url":"https://github.com/fable-compiler/Fable/issues/953","id":231188637,"number":953,"title":"[Feature] Allow ImportAttribute on modules to affect it's members","user":{"login":"Alxandr","id":112334,"avatar_url":"https://avatars3.githubusercontent.com/u/112334?v=3","gravatar_id":"","url":"https://api.github.com/users/Alxandr","html_url":"https://github.com/Alxandr","followers_url":"https://api.github.com/users/Alxandr/followers","following_url":"https://api.github.com/users/Alxandr/following{/other_user}","gists_url":"https://api.github.com/users/Alxandr/gists{/gist_id}","starred_url":"https://api.github.com/users/Alxandr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alxandr/subscriptions","organizations_url":"https://api.github.com/users/Alxandr/orgs","repos_url":"https://api.github.com/users/Alxandr/repos","events_url":"https://api.github.com/users/Alxandr/events{/privacy}","received_events_url":"https://api.github.com/users/Alxandr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2017-05-24T22:24:10Z","updated_at":"2017-05-25T18:05:26Z","closed_at":null,"body":"### Description\r\n\r\nPlease make the following equivalent:\r\n\r\n```fsharp\r\n[<Import(\"foo\", from=\"bar\")>]\r\nmodule Foo =\r\n  [<Emit(\"$0.foo($1)\")>]\r\n  let foo (v: string): unit = jsNative\r\n\r\n  [<Emit(\"$0.bar($1)\")>]\r\n  let bar (v: string): unit = jsNative\r\n```\r\n\r\n```fsharp\r\nmodule Foo =\r\n  [<Import(\"foo\", from=\"bar\"); Emit(\"$0.foo($1)\")>]\r\n  let foo (v: string): unit = jsNative\r\n\r\n  [<Import(\"foo\", from=\"bar\"); Emit(\"$0.bar($1)\")>]\r\n  let bar (v: string): unit = jsNative\r\n```\r\n\r\nIf we are worried about braking stuff, a new property on the `ImportAttribute` could be introduced, something like this:\r\n\r\n```fsharp\r\n[<Import(\"foo\", from=\"bar\", implicit=true)>]\r\nmodule Foo =\r\n  [<Emit(\"$0.foo($1)\")>]\r\n  let foo (v: string): unit = jsNative\r\n\r\n  [<Emit(\"$0.bar($1)\")>]\r\n  let bar (v: string): unit = jsNative\r\n```"},"comment":{"url":"https://api.github.com/repos/fable-compiler/Fable/issues/comments/304080424","html_url":"https://github.com/fable-compiler/Fable/issues/953#issuecomment-304080424","issue_url":"https://api.github.com/repos/fable-compiler/Fable/issues/953","id":304080424,"user":{"login":"ncave","id":777696,"avatar_url":"https://avatars3.githubusercontent.com/u/777696?v=3","gravatar_id":"","url":"https://api.github.com/users/ncave","html_url":"https://github.com/ncave","followers_url":"https://api.github.com/users/ncave/followers","following_url":"https://api.github.com/users/ncave/following{/other_user}","gists_url":"https://api.github.com/users/ncave/gists{/gist_id}","starred_url":"https://api.github.com/users/ncave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncave/subscriptions","organizations_url":"https://api.github.com/users/ncave/orgs","repos_url":"https://api.github.com/users/ncave/repos","events_url":"https://api.github.com/users/ncave/events{/privacy}","received_events_url":"https://api.github.com/users/ncave/received_events","type":"User","site_admin":false},"created_at":"2017-05-25T18:05:26Z","updated_at":"2017-05-25T18:05:26Z","body":"@Alxandr I agree, hard to match the mangled name, so not an option."}}
{"actor":{"display_login":"ncave"}}