File: time.cabal

package info (click to toggle)
ghc 9.10.3-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 169,076 kB
  • sloc: haskell: 713,554; ansic: 84,184; cpp: 30,255; javascript: 9,003; sh: 7,870; fortran: 3,527; python: 3,228; asm: 2,523; makefile: 2,324; yacc: 1,570; lisp: 532; xml: 196; perl: 111; csh: 2
file content (239 lines) | stat: -rw-r--r-- 6,510 bytes parent folder | download | duplicates (2)
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
cabal-version:  3.0
name:           time
version:        1.12.2
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 == 8.10.7,
    GHC == 9.0.2,
    GHC == 9.2.2
x-follows-version-policy:

extra-source-files:
    changelog.md
    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

source-repository head
    type:     git
    location: https://github.com/haskell/time

library
    hs-source-dirs: lib
    default-language: Haskell2010
    default-extensions:
        Rank2Types
        DeriveDataTypeable
        StandaloneDeriving
        PatternSynonyms
        ViewPatterns
    ghc-options: -Wall -fwarn-tabs
    c-sources: lib/cbits/HsTime.c
    build-depends:
        base >= 4.14 && < 5,
        deepseq >= 1.1
    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.Internal,
        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.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.CTimespec,
        Data.Time.Clock.Internal.UTCDiff,
        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
    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: Haskell2010
    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: Haskell2010
    ghc-options: -Wall -fwarn-tabs
    build-depends:
        base,
        time
    main-is: ShowTime.hs

test-suite test-main
    type: exitcode-stdio-1.0
    hs-source-dirs: test/main
    default-language: Haskell2010
    default-extensions:
        Rank2Types
        GeneralizedNewtypeDeriving
        DeriveDataTypeable
        StandaloneDeriving
        ExistentialQuantification
        MultiParamTypeClasses
        FlexibleInstances
        UndecidableInstances
        ScopedTypeVariables
        TupleSections
    ghc-options: -Wall -fwarn-tabs
    build-depends:
        base,
        deepseq,
        time,
        random,
        QuickCheck,
        tasty,
        tasty-hunit,
        tasty-quickcheck
    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.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-unix
    if os(windows)
        buildable: False
    type: exitcode-stdio-1.0
    hs-source-dirs: test/unix
    default-language: Haskell2010
    default-extensions:
        Rank2Types
        DeriveDataTypeable
        StandaloneDeriving
        ExistentialQuantification
        MultiParamTypeClasses
        FlexibleInstances
        UndecidableInstances
        ScopedTypeVariables
    ghc-options: -Wall -fwarn-tabs
    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: Haskell2010
    ghc-options: -Wall -fwarn-tabs
    build-depends:
        base,
        deepseq,
        time,
        criterion
    main-is: Main.hs