for more information visit the package's GitHub page
Package contains the following modules:
elm-units-prefixed
This is a prefixed version of
elm-units.
You should only need this if you run into module name conflicts trying to use
elm-units
directly.
For example, if you want to use both elm-units
and elm-visualization
in an app that you are developing, you will get a compiler error if you ever try
to write
import Force
since both elm-units
and elm-visualization
define a Force
module and
there is currently no way to tell the compiler which one you want.
By using using this package instead of the base elm-units
package, you can
write
import Force
to get the Force
module from elm-visualization
and
import Units.Force
to get the Force
module from elm-units
.
Importantly, this is not a fork of elm-units
- types declared in this
package are simply aliases for the underlying elm-units
types, and functions
are simply aliases for elm-units
functions. This means that if you use this
package you can still safely interoperate with other packages that use
elm-units
directly.
Current approach: check out both this repository and elm-package-prefixer,
then from within the elm-package-prefixer
checkout run to
npm install
npm run build
chmod +x index.js
./index.js -n ianmackenzie/elm-units -t latest -a ianmackenzie -p Units -d /path/to/elm-units-prefixed/src/