SimpleH-0.9.1: A light, clean and powerful Haskell utility library

Safe HaskellNone

SimpleH.Reactive.Time

Contents

Synopsis

Unambiguous times

data Time t Source

A type wrappers for timestamps that can be compared unambiguously

Instances

Unit Time 
Bounded (Time t) 
Ord t => Eq (Time t) 
Ord t => Ord (Time t) 
(Eq t, Show t) => Show (Time t) 
Ord t => Orderable (Time t) 
Ord t => Ring (Time t)

The Time ring where (*) == min and one == maxBound

Ord t => Monoid (Time t)

The Time monoid where zero == minBound

Ord t => Semigroup (Time t)

The Time semigroup where ta + tb == max ta tb

timeVal :: Eq t => Time t -> TimeVal tSource

Time utilities