All Versions
Latest Version
Avg Release Cycle
Latest Release

Changelog History
Page 1

  • v2.4.1 Changes

    • โž• Add Units superclass to UnitFactor, easing type inference in GHC 8.0, thanks to @rimmington.
  • 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 in Data.Metrology.Linear.

    • ๐Ÿ†• New Show and Read 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 like Volume instead of just base dimensions.

    • ๐Ÿ“ฆ Break out the units parser into its own package: units-parser.

    • โž• Add Data.Metrology.Unsafe.UnsafeQu, which has Functor 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 in Data.Metrology.Vector.

  • v2.2.1 Changes

    • Compatibility with GHC 7.10.

    • โž• Added AdditiveGroup and VectorSpace instances for Qu.

  • 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. Use Data.Metrology.Poly to get the old, more flexible operators.

    • ๐Ÿšš Moved showIn from Data.Metrology.Show to Data.Metrology.Poly. This allows users to import showIn without a Show instance for quantities.

    • Numeric operations are available based on vector spaces, as implemented in the vector-space library. See Data.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 and Ord instances now work over any quantity, not just dimensionless ones.

    • ๐Ÿ†• New functions in Data.Metrology.TH that define Dimension and Unit 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.