Safe Haskell | None |
---|---|
Language | Haskell2010 |
This package provides an interpreter implementation and instances for Chronos
of the Time
library.
Synopsis
- type ChronosTime = Time Time Date
- 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
Interpreters
type ChronosTime = Time Time Date Source #
Convenience alias for Chronos
.
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.