{"action":"created","issue":{"url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1043","labels_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1043/labels{/name}","comments_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1043/comments","events_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1043/events","html_url":"https://github.com/elm-lang/elm-compiler/issues/1043","id":104739821,"number":1043,"title":"Package name collisions","user":{"login":"rtfeldman","id":1094080,"avatar_url":"https://avatars.githubusercontent.com/u/1094080?v=3","gravatar_id":"","url":"https://api.github.com/users/rtfeldman","html_url":"https://github.com/rtfeldman","followers_url":"https://api.github.com/users/rtfeldman/followers","following_url":"https://api.github.com/users/rtfeldman/following{/other_user}","gists_url":"https://api.github.com/users/rtfeldman/gists{/gist_id}","starred_url":"https://api.github.com/users/rtfeldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtfeldman/subscriptions","organizations_url":"https://api.github.com/users/rtfeldman/orgs","repos_url":"https://api.github.com/users/rtfeldman/repos","events_url":"https://api.github.com/users/rtfeldman/events{/privacy}","received_events_url":"https://api.github.com/users/rtfeldman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-03T17:02:25Z","updated_at":"2015-09-03T17:23:02Z","closed_at":null,"body":"We recently tried to import the `Validate` module from `rtfeldman/elm-validate` into a module that already imported an internal module named `Validate`. I was hopeful that this would work to disambiguate...\r\n\r\n```elm\r\nimport Validate\r\nimport rtfeldman/elm-validate/Validate as ElmValidate\r\n```\r\n\r\n...but instead it was a syntax error.\r\n\r\nIn this case we can just rename our local module, but that wouldn't work if the conflict were between two third-party packages, both of which exposed a module with the same name.\r\n\r\nIs there a plan for how to resolve that?"},"comment":{"url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/comments/137518993","html_url":"https://github.com/elm-lang/elm-compiler/issues/1043#issuecomment-137518993","issue_url":"https://api.github.com/repos/elm-lang/elm-compiler/issues/1043","id":137518993,"user":{"login":"Apanatshka","id":1237863,"avatar_url":"https://avatars.githubusercontent.com/u/1237863?v=3","gravatar_id":"","url":"https://api.github.com/users/Apanatshka","html_url":"https://github.com/Apanatshka","followers_url":"https://api.github.com/users/Apanatshka/followers","following_url":"https://api.github.com/users/Apanatshka/following{/other_user}","gists_url":"https://api.github.com/users/Apanatshka/gists{/gist_id}","starred_url":"https://api.github.com/users/Apanatshka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Apanatshka/subscriptions","organizations_url":"https://api.github.com/users/Apanatshka/orgs","repos_url":"https://api.github.com/users/Apanatshka/repos","events_url":"https://api.github.com/users/Apanatshka/events{/privacy}","received_events_url":"https://api.github.com/users/Apanatshka/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T17:23:02Z","updated_at":"2015-09-03T17:23:02Z","body":"Perhaps your local application should have a separate namespace for all local modules?\r\nI'm not saying it's a bad idea to have package name disambiguation, I haven't formed an opinion on that yet. But I do think the habit to put application-specific modules in an application-specific top-level module would be a good idea. "}}