goldfirere / units

The home of the units Haskell package
94 stars 19 forks source link

Extract unitless quantities #71

Open andrevidela opened 9 months ago

andrevidela commented 9 months ago

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 of a quantity without units.

Fixes #70

andrevidela commented 9 months ago

I couldn't find instructions on how to run the tests locally so I hoped that CI would pick up the job but that does not seem to be the case, what do I need to do?