Stability | internal |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
This module contains orphan instances connecting different date libraries together:
- time, a commonly used library
containing the
UTCTime
type, which is a bit slow and inconvenient to use - monad-time which defines
the
MonadTime
class which usesUTCTime
. monad-time is used by the jose library to get the time - hourglass, an alternative to the time library which is nicer to use. It is used by the x509-validation library
- Data.Fixed
in
base
, which is used as the underlying representation ofNominalDiffTime
in thetime
library.
This module contains a Timeable
and Time
implementation for UTCTime
,
and a MonadTime
implementation for any ReaderT
of a Timeable
Orphan instances
Timeable UTCTime Source # | |
timeGetElapsedP :: UTCTime -> ElapsedP # timeGetElapsed :: UTCTime -> Elapsed # | |
Time UTCTime Source # | |
timeFromElapsedP :: ElapsedP -> UTCTime # timeFromElapsed :: Elapsed -> UTCTime # | |
HasResolution a => Timeable (Fixed a) Source # | |
timeGetElapsedP :: Fixed a -> ElapsedP # timeGetElapsed :: Fixed a -> Elapsed # timeGetNanoSeconds :: Fixed a -> NanoSeconds # | |
(Timeable t, Monad m) => MonadTime (ReaderT t m) Source # | |
currentTime :: ReaderT t m UTCTime # |