Safe Haskell | None |
---|---|
Language | Haskell2010 |
- deltaUTC :: (MonadIO m, Fractional t) => VarT m b t
- delta :: (Num t, Fractional t, Applicative m, Monad m) => m a -> (a -> a -> t) -> VarT m b t
- before :: (Applicative m, Monad m, Num t, Ord t) => t -> VarT m t (Event ())
- after :: (Applicative m, Monad m, Num t, Ord t) => t -> VarT m t (Event ())
Documentation
deltaUTC :: (MonadIO m, Fractional t) => VarT m b t Source
Produces time deltas using getCurrentTime
and diffUTCTime
.
delta :: (Num t, Fractional t, Applicative m, Monad m) => m a -> (a -> a -> t) -> VarT m b t Source
Produces time deltas using a monadic computation and a difference function.