Skip to content

Commit aa4d5b4

Browse files
committed
Make addTime right associative.
1 parent aca4d99 commit aa4d5b4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

io-sim-classes/src/Control/Monad/Class/MonadTime.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ diffTime (Time t) (Time t') = t - t'
3939
addTime :: DiffTime -> Time -> Time
4040
addTime d (Time t) = Time (d + t)
4141

42+
infixr 9 `addTime`
43+
4244

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

0 commit comments

Comments
 (0)