Changelog for units-2.4.1.5
Release notes for units
Version 2.4.1.5
- Use the
(-)operator of the underlyingNuminstance in(|-|). This prevents crashes when the underlying number type does not support negation. (Issue #69) - Compatibility with GHC 9.2.
Version 2.4.1.4
- Compatibility with GHC 9.0.
Version 2.4.1.3
- Compatibility with GHC 8.10, thanks to @ocharles.
Version 2.4.1.2
- Compatibility with singletons 2.6 and GHC 8.8, further thanks to @ocharles.
Version 2.4.1.1
- Fix some GHC compatibility issues, thanks to @ocharles.
Version 2.4.1
- Add
Unitssuperclass toUnitFactor, easing type inference in GHC 8.0, thanks to @rimmington.
Version 2.4
-
New interface with the
linearpackage inData.Metrology.Linear. -
New
ShowandReadinstances for dimensionless quantities. -
New
NFDatainstances for quantities, thanks to @rimmington. -
GHC 8 compatibility.
Version 2.3
-
Data.Metrology.TH.evalTypenow works in GHC 7.10 on dimensions likeVolumeinstead of just base dimensions. -
Break out the units parser into its own package:
units-parser. -
Add
Data.Metrology.Unsafe.UnsafeQu, which hasFunctorand 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
quOfPointand friends inData.Metrology.Vector.
Version 2.2.1
-
Compatibility with GHC 7.10.
-
Added
AdditiveGroupandVectorSpaceinstances forQu.
Version 2.2
-
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.
Version 2.1
-
Includes a decently comprehensive test suite.
-
Add support for unit parsing within expressions:
g = 9.8 % [si| m/s^2 |]See
Data.Metrology.Parser. -
Now,
Data.Metrologyexports operators that work with the default LCSU. UseData.Metrology.Polyto get the old, more flexible operators. -
Moved
showInfromData.Metrology.ShowtoData.Metrology.Poly. This allows users to importshowInwithout aShowinstance for quantities. -
Numeric operations are available based on vector spaces, as implemented in the
vector-spacelibrary. SeeData.Metrology.Vector. -
Some documentation cleanup.
-
New function
evalTypethat evaluates a type, using Template Haskell. This allows for easier instance declarations for quantities. -
New class
Quantitythat allows for easy conversions with non-unitstypes. -
A few bugfixes.
-
The
EqandOrdinstances now work over any quantity, not just dimensionless ones. -
New functions in
Data.Metrology.THthat defineDimensionandUnitinstances for you.
Version 2.0
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.
Version 1.1
-
Added dependency on the singletons library
-
Brought up to date with changes for GHC 7.8
-
Generalized numerical representation
-
Improved Haddock headers
Version 1.0.1
- Fixed dependency on base to force compilation with GHC >= 7.7
Version 1.0
- First release