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 # 
Instance details

Fractional DiffTime # 
Instance details

Fractional NominalDiffTime # 
Instance details

Num Micro # 
Instance details

Num DiffTime # 
Instance details

Num NominalDiffTime # 
Instance details

Real Micro # 
Instance details

Methods

toRational :: Micro -> Rational #

Real DiffTime # 
Instance details

Real NominalDiffTime # 
Instance details

RealFrac Micro # 
Instance details

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 # 
Instance details

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 # 
Instance details