Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow disambiguation when two packages expose modules with the same name #1625
Comments
evancz
added
canonicalization
meta
request
labels
Aug 3, 2017
evancz
referenced this issue
Aug 3, 2017
Closed
When two packages use the same Module.Name, neither can be used. #257
elm
locked and limited conversation to collaborators
Aug 3, 2017
elm
deleted a comment from
process-bot
Aug 3, 2017
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
evancz commentedAug 3, 2017
•
edited by rtfeldman
Edited 3 times
-
rtfeldman
edited Apr 6, 2018 (most recent)
-
evancz
edited Dec 20, 2017
-
evancz
edited Aug 4, 2017
People have ran into cases where two different packages expose modules with the same name. Reported examples include:
Date.Formatfrommgold/elm-date-formatandrluiten/elm-date-extrain #826 (comment)Animationfrommdgriffith/elm-style-animationandmgold/elm-animationin elm-lang/elm-package#257Elementfromevancz/elm-graphicsandmdgriffith/style-elementsin #1626Validatefrom local module andrtfeldman/elm-validatein #1043Memofromjvoigtlaender/elm-memoandktonon/elm-memo-purefor benchmarking in #1628Mousefromelm-lang/mouseandmpizenberg/elm-pointer-eventsfor handling mouse events mpizenberg/elm-pointer-events#9In some of these cases, I do not understand why folks are using two packages for the same thing. The
Elementcase is the best one in my opinion, even though it seems quite unlikely. It makes sense that they both use that name and have different goals. Should they end up in the same project though? Less clear. Also, when you have a local module, you can always choose a different name.If you have other examples, open a new issue. Just give the error and reference this issue.
Design considerations include: