serokell / o-clock

:hourglass: Type-safe time units in Haskell
Mozilla Public License 2.0
49 stars 6 forks source link

Remove the 'Num' instance for 'Time' #14

Closed int-index closed 6 years ago

int-index commented 6 years ago

(*) :: Time unit -> Time unit -> Time unit is an incorrect type, this is not how units work. If you multiply seconds by seconds, you have seconds squared, not seconds.