-
Notifications
You must be signed in to change notification settings - Fork 24
/
chronos.cabal
125 lines (113 loc) · 4 KB
/
chronos.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
cabal-version: 3.0
name: chronos
version: 1.1.6.2
synopsis: A high-performance time library
description:
Chronos is a performance-oriented time library for Haskell, with a
straightforward API. The main differences between this
and the <http://hackage.haskell.org/package/time 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 <http://hackage.haskell.org/package/attoparsec 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
<http://hackage.haskell.org/package/time-1.9.3/docs/Data-Time-Format.html 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.
homepage: https://github.com/byteverse/chronos
bug-reports: https://github.com/byteverse/chronos/issues
license: BSD-3-Clause
license-file: LICENSE
author: Andrew Martin
maintainer: [email protected], [email protected]
copyright: 2016 Andrew Martin
category: Data, Time, Parsing, Development
build-type: Simple
extra-doc-files:
CHANGELOG.md
README.md
tested-with: GHC ==9.4.8 || ==9.6.3 || ==9.8.1
common build-settings
default-language: Haskell2010
ghc-options: -Wall -Wunused-packages
library
import: build-settings
hs-source-dirs: src
exposed-modules:
Chronos
Chronos.Internal.CTimespec
Chronos.Locale.English
Chronos.Types
-- only exposed for doctests
-- it is OPTIONS_HADDOCK-hidden
build-depends:
, aeson >=1.1 && <2.3
, attoparsec >=0.13 && <0.15
, base >=4.14 && <5
, bytebuild >=0.3.14 && <0.4
, byteslice >=0.2.5.2 && <0.3
, bytesmith >=0.3.7 && <0.4
, bytestring >=0.10 && <0.13
, deepseq >=1.4.4.0
, hashable >=1.2 && <1.5
, natural-arithmetic >=0.1.2 && <0.3
, primitive >=0.6.4 && <0.10
, text >=1.2 && <1.3 || >=2.0 && <2.2
, text-short >=0.1.3 && <0.2
, torsor >=0.1 && <0.2
, vector >=0.11 && <0.14
if os(windows)
build-depends: Win32 >=2.2 && <2.14
c-sources: src/cbits/hs-time.c
ghc-options: -O2
test-suite chronos-test
import: build-settings
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Spec.hs
build-depends:
, aeson >=1.1 && <2.3
, attoparsec
, base
, bytestring
, chronos
, HUnit
, QuickCheck
, test-framework
, test-framework-hunit
, test-framework-quickcheck2
, text
, torsor
ghc-options: -threaded -rtsopts -with-rtsopts=-N
benchmark bench
import: build-settings
type: exitcode-stdio-1.0
hs-source-dirs: bench
main-is: Bench.hs
build-depends:
, attoparsec
, base
, bytestring
, chronos
, criterion
, deepseq >=1.4.4.0
, old-locale
, QuickCheck
, text
, text-short
, thyme
, time
ghc-options: -O2
source-repository head
type: git
location: git://github.com/byteverse/chronos.git