chronos: A performant time library

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

Warnings:

Chronos is a performance-oriented time library for Haskell, with a straightforward API. The main differences between this and the time library are: * Chronos uses machine integers where possible. This means that time-related arithmetic should be faster, with the drawback that the types are incapable of representing times that are very far in the future or the past (because Chronos provides nanosecond, rather than picosecond, resolution). For most users, this is not a hindrance. * Chronos provides ToJSON'/'FromJSON instances for serialisation. * Chronos provides Unbox instances for working with unboxed vectors. * Chronos provides Prim instances for working with byte arrays/primitive arrays. * Chronos uses normal non-overloaded haskell functions for encoding and decoding time. It provides attoparsec parsers for both Text and ByteString. Additionally, Chronos provides functions for encoding time to Text or ByteString. The http://hackage.haskell.org/package/time time> library accomplishes these with the Data.Time.Format module, which uses UNIX-style datetime format strings. The approach taken by Chronos is faster and catches more mistakes at compile time, at the cost of being less expressive.

Properties

Versions0.1.0, 0.2.0, 0.3, 0.4, 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.7
Change logNone available
Dependenciesaeson (>=1.1 && <1.5), attoparsec (==0.13.*), base (>=4.9 && <5), bytestring (==0.10.*), clock (>=0.7 && <0.9), hashable (==1.2.*), primitive (>=0.6.4 && <0.8), semigroups (>=0.16 && <0.19), text (==1.2.*), torsor (==0.1.*), vector (>=0.11 && <0.13), Win32 (>=2.2 && <2.9) [details]
LicenseBSD-3-Clause
Copyright2016 Andrew Martin
AuthorAndrew Martin
MaintainerAndrew Martin <andrew.thaddeus@gmail.com> chessai <chessai1996@gmail.com>
CategoryData, Time, Parsing, Development
Home pagehttps://github.com/andrewthad/chronos
Source repositoryhead: git clone https://github.com/andrewthad/chronos
UploadedWed Aug 14 16:08:15 UTC 2019 by chessai

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees