packages feed

simple-units 1.0.1.0 → 1.0.1.1

raw patch · 3 files changed

+5/−5 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

README.md view
@@ -11,8 +11,8 @@ >>> let gravity m1 m2 r = g .* (m1 * kilogram) .* (m2 * kilogram) ./ (r*meter .* r*meter) >>> let earth_mass = 5.972e24 * kilogram >>> let mars_mass = 6.417e23 * kilogram->>> let earth_radius = 6371e3 * meter->>> let mars_radius = 3389.5e3 * meter+>>> let earth_radius = 6371 * kilo meter+>>> let mars_radius = 3389.5 * kio meter >>> let weight_on_earth mass = gravity mass earth_mass earth_radius >>> let weight_on_mars mass = gravity mass mars_mass mars_radius >>> weight_on_earth (80 * kilogram)
simple-units.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: d6f127891744fc332ebbf4a673910fb2099711e9821adfba9c313c6b961cb175+-- hash: 86a74ca99a7b7499b1457b5625c7a799cd079870b8c85fb735b58c6d7d53728d  name:           simple-units-version:        1.0.1.0+version:        1.0.1.1 synopsis:       Simple arithmetic with SI units using type-checked dimensional analysis. description:    Please see the README on GitHub at <https://github.com/groscoe/simple-units#readme> category:       Numeric, Numerical
src/Units/Simple/Quantity.hs view
@@ -56,7 +56,7 @@ -- >>> weight_on_mars (80 * kilo gram) -- 298.22370259533704 kg*m/s^2 -- >>> weight_on_mars 1 / weight_on_earth 1--- 0.3796261966575378+-- 0.3796261966575378 <adimensional> newtype Quantity (us :: Units) a =   Quantity {     fromQuantity :: a -- ^Unwraps a 'Quantity', losing all unit information