dimensional v1.1 Release Notes
-
- โ Added
Semigroup
instances for GHC 8.4 compatibility. - ๐ฅ Breaking: Renamed
Root
type family toNRoot
. AddedSqrt
andCbrt
type synonyms. Addedsqrt
andcbrt
for term level dimensions. - ๐ฅ Breaking: Changed
Numeric.Units.Dimensional.Prelude
to export dimensionally typedsignum
,recip
, andlogBase
instead of the ones fromPrelude
. - ๐ฅ Breaking: Changed
Numeric.Units.Dimensional.Prelude
to export(.)
andid
fromControl.Category
instead of fromPrelude
. - ๐ฅ Breaking: Created a
product
function which take the product of a foldable structure ofDimensionless
values. Exported thisproduct
function from Numeric.Units.Dimensional.Prelude instead of the one fromPrelude
. - ๐ฅ Breaking: Changed the
HasDimension
typeclass to require an instance of the newHasDynamicDimension
typeclass. - ๐ฅ Breaking: Added operators for
AnyUnit
to the Numeric.Units.Dimensional.Dynamic module which may cause name collisions. - ๐ฅ Breaking: Added dynamic versions of
(*~)
,(/~)
, andsiUnit
to the Numeric.Units.Dimensional.Dynamic module which may cause name collisions. - ๐ฅ Breaking: Removed exports of
nMeter
,nSecond
,kilo
, etc from Numeric.Units.Dimensional.UnitNames. Access these instead by inspecting the relevant units or prefixes. - ๐ฅ Breaking: Generalized the type of
dimensionlessLength
from(Num a, Foldable f) => f (Dimensional v d a) -> Dimensionless a)
to(Num a, Foldable f) => f b -> Dimensionless a
. This provides a weaker constraint on the typea
and may result in ambiguous types in code that depends on the former less general type. - ๐ Fixed a bug in the definition of the
inHg_NIST
. - ๐ Fixed a bug in the interchange name of the Dalton.
- โ Added units for the US survey foot, yard, inch, mil, and mile.
- โ Added the short ton as a unit of mass.
- Clarified that the UCUM acre is based on the US survey foot.
- โ Added a version of the acre based on the international foot.
- โ Added
Data
,Generic
,Typeable
andNFData
instances for many ancillary types. - โ Added
unQuantity
to the Coercion module to ease unwrapping without introducing ambiguous type variables. - Created explicit representation of metric
Prefix
es. - โ Added a multiplicative
Monoid
instance forAnyQuantity
and forAnyUnit
. - โ Added the
DynQuantity
type to represent possibly valid quantities of statically unknown dimension, suitable for performing arithmetic with such quantities. - โ Added
nroot
function for term-level dimensions. - โ Added the Numeric.Units.Dimensional.Float module with convenient wrappers around functions from RealFloat and IEEE for inspecting floating point quantities.
- โ Added an
AEq
instance forQuantity
. - โ Added
Eq1
andOrd1
instances forQuantity
. - ๐ฆ Exposed the name of an 'AnyUnit' without promoting it to a 'Unit' first.
- ๐ฆ Exposed a way to convert atomic 'UnitName's back into 'NameAtom's.
- โ Added the
btu
, a unit of energy. - โ Added the
gauss
, a unit of magnetic flux density. - โ Added the
angstrom
, a unit of length. - Relocated git repository to https://github.com/bjornbm/dimensional
- โ Added