-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathtime.cabal
More file actions
278 lines (268 loc) · 7.3 KB
/
time.cabal
File metadata and controls
278 lines (268 loc) · 7.3 KB
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
cabal-version: 3.0
name: time
version: 1.15
stability: stable
license: BSD-2-Clause
license-file: LICENSE
author: Ashley Yakeley
maintainer: <ashley@semantic.org>
homepage: https://github.com/haskell/time
bug-reports: https://github.com/haskell/time/issues
synopsis: A time library
description: Time, clocks and calendars
category: Time
build-type: Configure
tested-with:
GHC == 9.8.4,
GHC == 9.10.2,
GHC == 9.12.2
x-follows-version-policy:
extra-source-files:
aclocal.m4
configure.ac
configure
lib/include/HsTime.h
lib/include/HsTimeConfig.h.in
test/unix/Test/Format/*.c
test/unix/Test/Format/*.h
extra-tmp-files:
config.log
config.status
autom4te.cache
lib/include/HsTimeConfig.h
extra-doc-files:
changelog.md
source-repository head
type: git
location: https://github.com/haskell/time
library
hs-source-dirs: lib
default-language: GHC2021
default-extensions:
NoGeneralizedNewtypeDeriving
LambdaCase
PatternSynonyms
ViewPatterns
ghc-options:
-Wall
-fwarn-tabs
-Wno-deriving-typeable
c-sources: lib/cbits/HsTime.c
build-depends:
base >= 4.19 && < 5,
deepseq >= 1.1,
if impl(ghc)
build-depends: template-haskell >= 2.17,
if os(windows)
build-depends: Win32
exposed-modules:
Data.Time.Calendar,
Data.Time.Calendar.MonthDay,
Data.Time.Calendar.OrdinalDate,
Data.Time.Calendar.WeekDate,
Data.Time.Calendar.Julian,
Data.Time.Calendar.Easter,
Data.Time.Calendar.Month,
Data.Time.Calendar.Quarter,
Data.Time.Clock,
Data.Time.Clock.System,
Data.Time.Clock.POSIX,
Data.Time.Clock.TAI,
Data.Time.LocalTime,
Data.Time.Format,
Data.Time.Format.ISO8601,
Data.Time
other-modules:
Data.Format,
Data.Time.Calendar.CalendarDiffDays,
Data.Time.Calendar.Days,
Data.Time.Calendar.Gregorian,
Data.Time.Calendar.JulianYearDay,
Data.Time.Calendar.Private,
Data.Time.Calendar.Types,
Data.Time.Calendar.Week,
Data.Time.Format.Internal,
Data.Time.Clock.Internal.DiffTime,
Data.Time.Clock.Internal.AbsoluteTime,
Data.Time.Clock.Internal.NominalDiffTime,
Data.Time.Clock.Internal.POSIXTime,
Data.Time.Clock.Internal.UniversalTime,
Data.Time.Clock.Internal.SystemTime,
Data.Time.Clock.Internal.UTCTime,
Data.Time.Clock.Internal.CTimeval,
Data.Time.Clock.Internal.UTCDiff,
Data.Time.LocalTime.Internal.Foreign,
Data.Time.LocalTime.Internal.TimeZone,
Data.Time.LocalTime.Internal.TimeOfDay,
Data.Time.LocalTime.Internal.CalendarDiffTime,
Data.Time.LocalTime.Internal.LocalTime,
Data.Time.LocalTime.Internal.ZonedTime,
Data.Time.Format.Parse,
Data.Time.Format.Locale,
Data.Time.Format.Format.Class,
Data.Time.Format.Format.Instances,
Data.Time.Format.Parse.Class,
Data.Time.Format.Parse.Instances
if !impl(mhs)
other-modules:
Data.Time.Clock.Internal.CTimespec
include-dirs: lib/include
if os(windows)
install-includes:
HsTime.h
else
autogen-includes:
HsTimeConfig.h
install-includes:
HsTime.h
HsTimeConfig.h
test-suite ShowDefaultTZAbbreviations
type: exitcode-stdio-1.0
hs-source-dirs: test
default-language: GHC2021
ghc-options: -Wall -fwarn-tabs
build-depends:
base,
time
main-is: ShowDefaultTZAbbreviations.hs
test-suite ShowTime
type: exitcode-stdio-1.0
hs-source-dirs: test
default-language: GHC2021
ghc-options: -Wall -fwarn-tabs
build-depends:
base,
time
main-is: ShowTime.hs
test-suite ForeignCalls
type: exitcode-stdio-1.0
hs-source-dirs: test
default-language: GHC2021
ghc-options: -Wall -fwarn-tabs
build-depends:
base,
time
main-is: ForeignCalls.hs
test-suite test-main
if arch (javascript)
-- blocked by splitmix
-- https://github.com/haskellari/splitmix/issues/93
buildable: False
type: exitcode-stdio-1.0
hs-source-dirs: test/main
default-language: GHC2021
default-extensions:
DefaultSignatures
DerivingStrategies
RecordWildCards
UndecidableInstances
ghc-options: -Wall -fwarn-tabs
if !arch (wasm32)
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
base,
deepseq,
time,
random,
QuickCheck,
tasty,
tasty-hunit,
tasty-quickcheck,
template-haskell
main-is: Main.hs
other-modules:
Test.Types
Test.TestUtil
Test.Arbitrary
Test.Calendar.AddDays
Test.Calendar.AddDaysRef
Test.Calendar.CalendarProps
Test.Calendar.Calendars
Test.Calendar.CalendarsRef
Test.Calendar.ClipDates
Test.Calendar.ClipDatesRef
Test.Calendar.ConvertBack
Test.Calendar.Duration
Test.Calendar.Easter
Test.Calendar.EasterRef
Test.Calendar.DayPeriod
Test.Calendar.LongWeekYears
Test.Calendar.LongWeekYearsRef
Test.Calendar.MonthDay
Test.Calendar.MonthDayRef
Test.Calendar.MonthOfYear
Test.Calendar.Valid
Test.Calendar.Week
Test.Calendar.Year
Test.Clock.Conversion
Test.Clock.Pattern
Test.Clock.Resolution
Test.Clock.TAI
Test.Format.Compile
Test.Format.Format
Test.Format.ParseTime
Test.Format.ISO8601
Test.LocalTime.CalendarDiffTime
Test.LocalTime.Time
Test.LocalTime.TimeOfDay
Test.LocalTime.TimeRef
test-suite test-template
if arch (wasm32)
buildable: False
type: exitcode-stdio-1.0
hs-source-dirs: test/template
default-language: GHC2021
default-extensions:
DerivingStrategies
UndecidableInstances
RecordWildCards
TemplateHaskell
ghc-options: -Wall -fwarn-tabs
build-depends:
base,
deepseq,
time,
random,
QuickCheck,
tasty,
tasty-hunit,
tasty-quickcheck,
template-haskell
main-is: Main.hs
test-suite test-unix
if os(windows) || arch (javascript) || arch (wasm32)
buildable: False
type: exitcode-stdio-1.0
hs-source-dirs: test/unix
default-language: GHC2021
default-extensions:
UndecidableInstances
ghc-options: -Wall -fwarn-tabs
if !arch (wasm32)
ghc-options: -threaded -rtsopts -with-rtsopts=-N
c-sources: test/unix/Test/Format/FormatStuff.c
build-depends:
base,
deepseq,
time,
random,
QuickCheck,
tasty,
tasty-hunit,
tasty-quickcheck
main-is: Main.hs
other-modules:
Test.TestUtil
Test.Format.Format
Test.LocalTime.TimeZone
benchmark time-bench
type: exitcode-stdio-1.0
hs-source-dirs: benchmark
default-language: GHC2021
ghc-options: -Wall -fwarn-tabs
build-depends:
base,
deepseq,
time,
criterion
main-is: Main.hs