units icon indicating copy to clipboard operation
units copied to clipboard

The home of the units Haskell package

Results 7 units issues
Sort by recently updated
recently updated
newest added

It is possible to extract a quantity by providing a unit, but no way to extract a unitless quantity. This PR provides `extract` which allows to obtain the underlying value...

I've got some code that performs a division that removes all dimensions ```haskell a :: Mass SI n b :: Mass SI n c :: Qu '[] SI n c...

It looks to me like the units package doesn't currently support converting between units that have different zero-points, such as between degrees Kelvin, Celsius, and Fahrenheit. How could that work?

enhancement
Hard

The unit of "Hertz" is usually written 1/s, but I'm not sure that's what people really mean. I _think_ Hertz is more usefully defined as cycles/second, where 1 cycle is...

Compare: - 2.4.1.2 with working docs: https://hackage.haskell.org/package/units-2.4.1.2 - 2.4.1.3 with broken docs: https://hackage.haskell.org/package/units-2.4.1.3

Right now, ``` import Data.Units.SI import Data.Units.US do units

It is very easy to get dimension and unit declarations wrong, leading to terrible error messages. This feature request is to add a "lint" function, written in Template Haskell, to...

enhancement