You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both ianmackenzie/elm-units and gampleman/elm-visualization define a Force module (for force the physical quantity and force-directed graphs respectively). This is now preventing @gampleman from easily updating elm-visualization to use ianmackenzie/elm-geometry 3.x, since elm-geometry 3.x uses elm-units throughout its API (so that any package that uses elm-geometry directly also has to use elm-units directly).
This in turn has caused problems with people trying to use both elm-geometry and elm-visualization within the same app (at least for @supermario, and perhaps others), since attempting to use the current version of each package causes dependency conflicts.
The Force module name conflict is an additional data point for #1625, but I believe this is the first time that it has become a problem for a package instead of an app. This makes the problem more difficult to work around, since neither package can simply rename the Force module without a breaking API change.
The current proposed workaround is to create a prefixed version of the elm-units package that re-exposes all elm-units types via aliases in modules such as Units.Force, and have functions in those modules that simply redirect to the corresponding elm-units functions.
The text was updated successfully, but these errors were encountered:
Both
ianmackenzie/elm-units
andgampleman/elm-visualization
define aForce
module (for force the physical quantity and force-directed graphs respectively). This is now preventing @gampleman from easily updatingelm-visualization
to useianmackenzie/elm-geometry
3.x, sinceelm-geometry
3.x useselm-units
throughout its API (so that any package that useselm-geometry
directly also has to useelm-units
directly).This in turn has caused problems with people trying to use both
elm-geometry
andelm-visualization
within the same app (at least for @supermario, and perhaps others), since attempting to use the current version of each package causes dependency conflicts.The
Force
module name conflict is an additional data point for #1625, but I believe this is the first time that it has become a problem for a package instead of an app. This makes the problem more difficult to work around, since neither package can simply rename theForce
module without a breaking API change.The current proposed workaround is to create a prefixed version of the
elm-units
package that re-exposes allelm-units
types via aliases in modules such asUnits.Force
, and have functions in those modules that simply redirect to the correspondingelm-units
functions.The text was updated successfully, but these errors were encountered: