polysemy-chronos-0.5.0.0: Polysemy effects for Chronos
Safe HaskellSafe-Inferred
LanguageHaskell2010

Polysemy.Chronos

Contents

Description

This package provides Chronos based interpreters and instances for the effect and classes defined in Polysemy.Time.

Synopsis

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.