thyme-0.3.5.5: A faster time library

Safe HaskellNone
LanguageHaskell2010

Data.Thyme.Time

Contents

Description

This module provides compatibility instances and wrappers for the things that thyme does differently from time, and allows it to be used as a drop-in replacement for the latter, with the exceptions noted below:

You shouldn't need to use lens or vector-space directly if you don't want to. However if you do use vector-space and wish to avoid the RealFrac instances for DiffTime and NominalDiffTime, import Data.Thyme.Time.Core instead.

Anything else is probably not intentional, and you should either contact me via IRC or file an issue at https://github.com/liyang/thyme/issues.

Documentation

Orphan instances

Fractional Micro Source # 
Fractional DiffTime Source # 
Fractional NominalDiffTime Source # 
Num Micro Source # 
Num DiffTime Source # 
Num NominalDiffTime Source # 
Real Micro Source # 

Methods

toRational :: Micro -> Rational #

Real DiffTime Source # 
Real NominalDiffTime Source # 
RealFrac Micro Source # 

Methods

properFraction :: Integral b => Micro -> (b, Micro) #

truncate :: Integral b => Micro -> b #

round :: Integral b => Micro -> b #

ceiling :: Integral b => Micro -> b #

floor :: Integral b => Micro -> b #

RealFrac DiffTime Source # 

Methods

properFraction :: Integral b => DiffTime -> (b, DiffTime) #

truncate :: Integral b => DiffTime -> b #

round :: Integral b => DiffTime -> b #

ceiling :: Integral b => DiffTime -> b #

floor :: Integral b => DiffTime -> b #

RealFrac NominalDiffTime Source #