Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type ChronosTime = Time Time Date
- now :: Member (Embed IO) r => Sem r Time
- timeToDate :: Time -> Date
- dateToTime :: Date -> Time
- interpretTimeChronos :: Member (Embed IO) r => InterpreterFor ChronosTime r
- interpretTimeChronosAt :: Member (Embed IO) r => Time -> InterpreterFor ChronosTime r
- interpretTimeChronosConstant :: Member (Embed IO) r => Time -> InterpreterFor ChronosTime r
- interpretTimeChronosConstantNow :: Member (Embed IO) r => InterpreterFor ChronosTime r
- negateTimespan :: Timespan -> Timespan
Documentation
type ChronosTime = Time Time Date Source #
Convenience alias for Chronos
.
timeToDate :: Time -> Date Source #
dateToTime :: Date -> Time Source #
interpretTimeChronos :: Member (Embed IO) r => InterpreterFor ChronosTime r Source #
Interpret Time
with the types from Chronos
.
interpretTimeChronosAt :: Member (Embed IO) r => Time -> InterpreterFor ChronosTime r Source #
Interpret Time
with the types from Chronos
, customizing the current time at the start of interpretation.
interpretTimeChronosConstant :: Member (Embed IO) r => Time -> InterpreterFor ChronosTime r Source #
Interpret Time
with the types from Chronos
, customizing the current time to be constant.
interpretTimeChronosConstantNow :: Member (Embed IO) r => InterpreterFor ChronosTime r Source #
Interpret Time
with the types from Chronos
, customizing the current time to be constantly the time at the
start of interpretation.
negateTimespan :: Timespan -> Timespan Source #