- Add Julian
decade
andmillennium
toNonSI
. - Rename
deka
prefix todeca
in accordance with international spelling. - Change
astronomicalUnit
symbol to lowercase (au
). - Remove
semigroups
dependency. - Significant documentation improvements.
Thanks to @konsumlamm for many contributions!
- Add
calorie
toNonSI
. - Remove deprecated
AutoDeriveTypeable
pragmas. This means thatTypable
instances are no provided on GHC prior to 8.2.
- Breaking: Changed the
Show
instances forUnitName
,Unit
,SQuantity
to use non-breaking spaces within unit names and between values and their units. - Bumped exact-pi dependency to < 0.6.
- Added the dimensionless unit
percent
. - Added dimensionless wrappers for
log1p
,expm1
,log1pexp
, andlog1mexp
from theFloating
class.
- Add
NoStarIsType
extension and importData.Kind.Type
for GHC 8.6 compitbility. Abandon compatibility with GHC < 8.
- 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
- Fixed an issue with applying metric prefixes to units with non-rational conversion factors.
- Support for GHC 8.0.1-rc4, avoiding GHC Trac issue 12026.
- Added support for stack.
- Improved example in readme.
- Added Numeric.Units.Dimensional.Coercion module.
- Bumped exact-pi dependency to < 0.5.
- Restored changelog.
- Addressed issues with documentation.
- Changed to DataKinds and ClosedTypeFamilies encoding of dimensions.
- Added names and exact values to
Unit
s. - Added
AnyUnit
andAnyQuantity
for quantities whose dimension is statically unknown. - Added Storable and Unbox instances for
Quantity
. - Added dimensionally-polymorphic
siUnit
for the coherent SI base unit of any dimension. - Added some additional units.
- Corrected definition of lumen.
- Bumped time dependency to < 1.6.
- Bump major version (should have been done in previous version).
- Bump numtype dependency to 1.1 (GHC 7.8.1 compatibility fix).
- Added
Torque
. - Added D.. for the type synonym quantities (e.g.,
Angle
).
- Added
FirstMassMoment
,MomentOfInertia
,AngularMomentum
. - Improved unit numerics.
- Typeable Dimensionals.
- Polymorphic
_0
(closes issue 39). - Added
astronomicalUnit
. - Added imperial volume units.
- Added 'mil' (=inch/1000).
- Added
tau
. - Added
KinematicViscosity
.
- Bumped time dependency to < 1.5.
- Bumped time dependency to < 1.4.
GHC 7.2.1 compatibility fix:
- Increased CGS context-stack to 30.
See the announcement.
See the announcement.