polysemy-time-0.6.0.2: A Polysemy effect for time
Safe HaskellSafe-Inferred
LanguageGHC2021

Polysemy.Time.Diff

Description

Diff Combinator, Internal

Synopsis

Documentation

diff :: forall dt u i1 i2 diff. TimeUnit diff => TimeUnit u => Torsor dt diff => Instant i1 dt => Instant i2 dt => i1 -> i2 -> u Source #

Subtract two arbitrary values that can be converted to an Instant.

since :: forall u t d dt diff r. TimeUnit diff => TimeUnit u => Instant t dt => Torsor dt diff => Member (Time t d) r => t -> Sem r u Source #

Calculate the duration between the given Instant and the current time.