[Haskell-beginners] Fractional of DiffTime
aquagnu at gmail.com
Fri Aug 18 09:35:19 UTC 2017
DiffTime type has "closed" on itself operation "/". So,
(/) :: DiffTime -> DiffTime -> DiffTime
But from a physics point of view, it doesn't make sense. When you
divide hours by hours you get "dimensionless" value, not units
(hours) but simple number (I'm not sure how it's named in English).
And it's true for any physical values:
[m/s] : [m/s] = [Int] (not [m/s] sure)
Is it right to define CLOSED "/" for such set like DiffTime?
Best regards, Paul
More information about the Beginners