serokell / o-clock

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

[#47] Rename SecondUnit -> Second (and others) #48

Closed chshersh closed 6 years ago

chshersh commented 6 years ago

Resolves #47 . Renaming is performed. In most places functions got simpler. But several drawbacks noticed:

  1. You can't create time using 5 :: Second way. Now you can use only 5 :: Time Second.
  2. You can't use read like read @Second. Now only read @(Time Second).
chshersh commented 6 years ago

@vrom911 Fixed. Could you please review one more time and approve if everything oks? :slightly_smiling_face: