[Haskell-cafe] [Haskell] [ANN] quantities 0.3.0

John David Reaver jdreaver at adlerhorst.com
Tue Apr 15 22:25:19 UTC 2014


> Most libraries only support static checking of units (AFAIK).

I found that to be the case. Indeed, if would be nice to integrate
both approaches elegantly. I haven't figured out how yet.

> (try to type "(1m + 1ft + 2 yards + 50in) * 5 / (8 km/h) in minutes"
> for instance).

I had to try it using quantities :)

>>> fromString "(1m + 1ft + 2 yard + 50in) * 5 / (8 km/h) => minute"
Right 0.16513500000000006 minute
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140415/a9c7a35f/attachment.html>


More information about the Haskell-Cafe mailing list