<div dir="ltr"><div><div><div>You may also be interested in the various flavors of Björn Buckwalter's dimensional library.<br><br></div>On hackage it's dimensional-tf (for type families, and my preference) or dimensional (for multi-parameter type classes).<br>
<br></div>We are working on making a version that takes advantage of the new GHC DataKinds features to provide even more features, that's at <a href="https://github.com/bjornbm/dimensional-dk">https://github.com/bjornbm/dimensional-dk</a>.<br>
<br><br></div>-Doug<div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Mar 11, 2014 at 4:26 PM, Mike Meyer <span dir="ltr"><<a href="mailto:mwm@mired.org" target="_blank">mwm@mired.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class=""><div><br></div><div>On Tue, Mar 11, 2014 at 4:03 PM, Iustin Pop <<a href="mailto:iusty@k1024.org" target="_blank">iusty@k1024.org</a>> wrote:</div>
<div>> Looking at your documentation, I see a lot of sense behind implementing</div>
<div>> different units (Horsepower vs. Watts), but I'm not so sure about (for</div><div>> example) g/kg or m/cm/mm. These are just (SI) scaling factors, so should</div><div>> they be treated the same as individual units?</div>

<div><br></div></div><div>Depends on if the difference shows up to the user. I've been using a</div><div>calculator/scripting language (Frink) for years that has this kind of</div><div>facility, and while I know that they are just scaling factors, I still</div>

<div>treat them as different types of units. That may be because I grew up</div><div>using imperial units, and inches/feet/yards/miles don't allow for</div><div>being treated that way.</div><div class=""><div><br></div>
<div>> For just the scaling factors, I released last year</div>
<div>> <a href="http://hackage.haskell.org/package/prefix-units" target="_blank">http://hackage.haskell.org/package/prefix-units</a>, and I'm wondering if we</div><div>> couldn't somehow combine these two libraries. After all, "k" applies</div>

<div>> both to KG and KW :)</div><div><br></div></div><div>Yes, but "KV" is not _always_ a kilovolt. When used on an electrical</div><div>motor, it's a measure of how many thousands of RPM you can expect the</div>

<div>motor to turn when for each volt of power it's fed. I'm hoping to get</div><div>around to desiging the power system for a multirotor this year, and</div><div>will be interesetd to see how various tools deal with this issue.</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>   <mike</div><div><br></div></font></span></div>
<br>_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>J. Douglas McClean<br><br>(781) 561-5540 (cell)
</div></div>