Ian Mackenzie

Results 148 comments of Ian Mackenzie

@w0rm The source code for that example is at https://github.com/opensolid/scene/blob/master/examples/Animated.elm, although I'm afraid I'm still working on that package so it hasn't been published yet! I'll let you know when...

Non-breaking version: keep units the same (one canonical units type per quantity type), but for uniformity support functions like `Force.massTimesAcceleration` even though ```elm Force.massTimesAcceleration mass acceleration ``` _could_ be written...

For the 'constructors', should they be of the form ```elm Speed.lengthPerDuration : Quantity Float (Rate Meters Seconds) -> Speed -- e.g. Speed.lengthPerDuration (Length.kilometers 100 |> Quantity.per (Duration.hours 1)) ``` or...

@edgerunner sounds like you're doing some pretty sophisticated stuff with `elm-units`, very cool! My first reaction is that a function like `lift` is a good candidate for writing like ```elm...

Another potentially interesting approach could be to have a single `repackage` function (I think I'd be inclined to call it `coerce`) and then have an [`elm-review`](https://package.elm-lang.org/packages/jfmengels/elm-review/latest/) rule that somehow checked...

I think a new type like `NonNegativeQuantity` would be tricky, since then you'd presumably need `NonNegativeDuration`, `NonNegativeLength` etc. types/modules, with a bunch of duplicate logic to create a new `NonNegativeDuration`...

Argh, good catch, thanks! I think that probably worked when previewing docs locally but doesn't work on the actual Elm package site. The intent is to link to https://package.elm-lang.org/packages/ianmackenzie/elm-units/latest/#multiplication-and-division (a...

I'm actually also currently working on a framework for making nice 'guides' for Elm packages (with code examples, inline interactive demos etc.). So perhaps the best solution is to move...

@katjam Sure, sounds good, and thanks for checking first! Off the top of my head for volume units I'd suggest including (along with `cubicMeters`): - `liters`, `milliliters` - `usLiquidGallons`, `usDryGallons`,...

That's interesting, I don't get that compile error myself (even if I explicitly call `Quantity.min`) - you're not using Elm 0.18 or something, are you?