polysemy-chronos-0.1.2.2: Polysemy effect for chronos
Safe HaskellNone
LanguageHaskell2010

Polysemy.Chronos.Time

Synopsis

Documentation

type ChronosTime = Time Time Date Source #

Convenience alias for Chronos.

now :: Member (Embed IO) r => Sem r Time Source #

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.

negateTimespan :: Timespan -> Timespan Source #