Changelog History
Page 1
-
v2.4.1 Changes
- โ Add
Units
superclass toUnitFactor
, easing type inference in GHC 8.0, thanks to @rimmington.
- โ Add
-
v2.4.1.3 Changes
- Compatibility with GHC 8.10, thanks to @ocharles.
-
v2.4.1.2 Changes
- Compatibility with singletons 2.6 and GHC 8.8, further thanks to @ocharles.
-
v2.4.1.1 Changes
- ๐ Fix some GHC compatibility issues, thanks to @ocharles.
-
v2.4 Changes
๐ New interface with the
linear
package inData.Metrology.Linear
.๐ New
Show
andRead
instances for dimensionless quantities.๐ New
NFData
instances for quantities, thanks to @rimmington.GHC 8 compatibility.
-
v2.3 Changes
Data.Metrology.TH.evalType
now works in GHC 7.10 on dimensions likeVolume
instead of just base dimensions.๐ฆ Break out the units parser into its own package:
units-parser
.โ Add
Data.Metrology.Unsafe.UnsafeQu
, which hasFunctor
and other instances.๐ Fix the fixity of
%
. It was way too high! Now it's 5.โ Add the ability to convert in and out of point quantities. See
quOfPoint
and friends inData.Metrology.Vector
.
-
v2.2.1 Changes
Compatibility with GHC 7.10.
โ Added
AdditiveGroup
andVectorSpace
instances forQu
.
-
v2.2 Changes
Some types of arithmetic operations are different to aid in type inference. For example,
*|
does not normalize its dimension list.The types of the
derive...
TH functions now allow for deriving units based on composite dimensions/units.๐ New TH function to help declare constants, called
declareConstant
.
-
v2.1 Changes
โ Includes a decently comprehensive test suite.
โ Add support for unit parsing within expressions:
g = 9.8 % [si| m/s2 |]
See
Data.Metrology.Parser
.0๏ธโฃ Now,
Data.Metrology
exports operators that work with the default LCSU. UseData.Metrology.Poly
to get the old, more flexible operators.๐ Moved
showIn
fromData.Metrology.Show
toData.Metrology.Poly
. This allows users to importshowIn
without aShow
instance for quantities.Numeric operations are available based on vector spaces, as implemented in the
vector-space
library. SeeData.Metrology.Vector
.๐ Some documentation cleanup.
๐ New function
evalType
that evaluates a type, using Template Haskell. This allows for easier instance declarations for quantities.๐ New class
Quantity
that allows for easy conversions with non-units
types.๐ A few bugfixes.
The
Eq
andOrd
instances now work over any quantity, not just dimensionless ones.๐ New functions in
Data.Metrology.TH
that defineDimension
andUnit
instances for you.
-
v2.0 Changes
โก๏ธ This is a major update.
units
now supports the notion of a local unit set ๐ and of separable dimensions and units. See the description in the draft paper for more info.โก๏ธ This update will very likely break any code that used
units-1.x
.โก๏ธ The update was written in partnership with Takayuki Muranushi.