Skip to content

Commit

Permalink
Make addTime right associative.
Browse files Browse the repository at this point in the history
  • Loading branch information
coot committed Feb 27, 2021
1 parent 6fa446e commit b52c22d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions io-sim-classes/src/Control/Monad/Class/MonadTime.hs
Expand Up @@ -39,6 +39,8 @@ diffTime (Time t) (Time t') = t - t'
addTime :: DiffTime -> Time -> Time
addTime d (Time t) = Time (d + t)

infixr 9 `addTime`


class Monad m => MonadMonotonicTime m where
-- | Time in a monotonic clock, with high precision. The epoch for this
Expand Down

0 comments on commit b52c22d

Please sign in to comment.