elm-lang / elm-package

Command line tool to share Elm libraries
BSD 3-Clause "New" or "Revised" License
213 stars 66 forks source link

When two packages use the same Module.Name, neither can be used. #257

Closed sgillis closed 7 years ago

sgillis commented 7 years ago

Installing libraries that expose modules with the same name results in problems. For example, mdgriffith/elm-style-animation and mgold/elm-animation both expose Animation. When trying to compile, I get this error:

I found multiple modules named 'Animation'.

Module '<mymodule>' is trying to import it.

Modules with that name were found in the following locations:

    package mdgriffith/elm-style-animation
    package mgold/elm-animation

It seems that this could become a bigger problem when the number of packages grows.

I am using Elm 0.18

process-bot commented 7 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

evancz commented 7 years ago

Tracking in https://github.com/elm-lang/elm-compiler/issues/1625 meta issue. Thanks for the report!