ianmackenzie / elm-units

Simple, safe and convenient unit types and conversions for Elm
https://package.elm-lang.org/packages/ianmackenzie/elm-units/latest/
BSD 3-Clause "New" or "Revised" License
84 stars 14 forks source link

Clarify relationship between individual modules and Quantity module? #53

Open ianmackenzie opened 4 years ago

ianmackenzie commented 4 years ago

It's not always obvious that you can use functions in the Quantity module to work with Length, Duration etc. values; could be useful to add something like this to the top of each module's documentation:

Note that a Duration is a Quantity Float Seconds, so most functions in the Quantity module (such as plus, greaterThan, and interpolateFrom) will work on Duration values.