Ose Pedro
Ose Pedro
Would it be worth adding support for `Either a b` (for any supported atomic type `b`), as a more informative alternative to `Maybe b`? That would allow us to write...
I personally wouldn't find a "scroll preview with cursor" feature useful, as: 1. Rolling a mousewheel or sliding a trackpad is faster than moving to a line and clicking; and...
Yes, I'm aware that `NFData1` expresses a constraint on types of kind `k -> Type`. But it's not my example -- it's the example in [this part of the module...
Right, and isn't the "Generic NFData deriving" section also aimed at the day-to-day developer, whose goal is to apply the "Helper functions" to their own data types? If so, wouldn't...
Yes, you'll need to clamp the result of `scaleExponentialFloat` before rounding it.
On further reflection, the result will need to be clamped to the largest `a` values that have exact `Double` representations. Since you need to calculate these values anyway, replacing `minBound`...
> The code above uses !
If you got an email notification about my previous comment, please note that my initial suggestion of using a binary search wouldn't have worked, because `isExactDouble` is not monotonic over...
Yes, that will work if the size of `a` is less than 1024-bits. Larger types have a `maxBound` that exceeds the largest finite `Double` though, so `fromIntegral (maxBound :: a)...
That sounds perfectly reasonable to me (just make sure that `scaleExponentialFloat` produces a `Double`, not a `Float`!). Would it be worth exposing the representation of `Range`, so that a person...