update version and Checklist
[packages/time.git] / time.cabal
1 name:           time
2 version:        1.8.0.4
3 stability:      stable
4 license:        BSD3
5 license-file:   LICENSE
6 author:         Ashley Yakeley
7 maintainer:     <ashley@semantic.org>
8 homepage:       https://github.com/haskell/time
9 bug-reports:    https://github.com/haskell/time/issues
10 synopsis:       A time library
11 description:    Time, clocks and calendars
12 category:       Time
13 build-type:     Configure
14 cabal-version:  >=1.10
15 tested-with:    GHC == 8.0.1, GHC == 7.10.3, GHC == 7.8.4
16 x-follows-version-policy:
17
18 extra-source-files:
19     changelog.md
20     aclocal.m4
21     configure.ac
22     configure
23     lib/include/HsConfigure.h
24     lib/include/HsTime.h
25     lib/include/HsTimeConfig.h.in
26     test/unix/Test/Format/*.c
27     test/unix/Test/Format/*.h
28 extra-tmp-files:
29     config.log
30     config.status
31     autom4te.cache
32     lib/include/HsTimeConfig.h
33
34 source-repository head
35     type:     git
36     location: https://github.com/haskell/time
37
38 library
39     hs-source-dirs: lib
40     default-language: Haskell2010
41     if impl(ghc)
42         default-extensions:
43             Rank2Types
44             DeriveDataTypeable
45             StandaloneDeriving
46         cpp-options: -DLANGUAGE_Rank2Types -DLANGUAGE_DeriveDataTypeable -DLANGUAGE_StandaloneDeriving
47     else
48         if impl(hugs)
49             default-extensions: Rank2Types
50             cpp-options: -DLANGUAGE_Rank2Types
51     ghc-options: -Wall -fwarn-tabs
52     build-depends:
53         base >= 4.7 && < 5,
54         deepseq >= 1.1
55     if os(windows)
56         build-depends: Win32
57     exposed-modules:
58         Data.Time.Calendar,
59         Data.Time.Calendar.MonthDay,
60         Data.Time.Calendar.OrdinalDate,
61         Data.Time.Calendar.WeekDate,
62         Data.Time.Calendar.Julian,
63         Data.Time.Calendar.Easter,
64         Data.Time.Clock,
65         Data.Time.Clock.System,
66         Data.Time.Clock.POSIX,
67         Data.Time.Clock.TAI,
68         Data.Time.LocalTime,
69         Data.Time.Format,
70         Data.Time
71     default-extensions:    CPP
72     c-sources: lib/cbits/HsTime.c
73     other-modules:
74         Data.Time.Calendar.Private,
75         Data.Time.Calendar.Days,
76         Data.Time.Calendar.Gregorian,
77         Data.Time.Calendar.JulianYearDay,
78         Data.Time.Clock.Internal.DiffTime,
79         Data.Time.Clock.Internal.AbsoluteTime,
80         Data.Time.Clock.Internal.NominalDiffTime,
81         Data.Time.Clock.Internal.POSIXTime,
82         Data.Time.Clock.Internal.UniversalTime,
83         Data.Time.Clock.Internal.SystemTime,
84         Data.Time.Clock.Internal.UTCTime,
85         Data.Time.Clock.Internal.CTimeval,
86         Data.Time.Clock.Internal.CTimespec,
87         Data.Time.Clock.Internal.UTCDiff,
88         Data.Time.LocalTime.Internal.TimeZone,
89         Data.Time.LocalTime.Internal.TimeOfDay,
90         Data.Time.LocalTime.Internal.LocalTime,
91         Data.Time.LocalTime.Internal.ZonedTime,
92         Data.Time.Format.Parse
93         Data.Time.Format.Locale
94     include-dirs: lib/include
95     if os(windows)
96         install-includes:
97             HsTime.h
98     else
99         install-includes:
100             HsTime.h
101             HsTimeConfig.h
102
103 test-suite ShowDefaultTZAbbreviations
104     type: exitcode-stdio-1.0
105     hs-source-dirs: test
106     default-language: Haskell2010
107     ghc-options: -Wall -fwarn-tabs
108     build-depends:
109         base,
110         time
111     main-is: ShowDefaultTZAbbreviations.hs
112
113 test-suite test-main
114     type: exitcode-stdio-1.0
115     hs-source-dirs: test/main
116     default-language: Haskell2010
117     default-extensions:
118         Rank2Types
119         CPP
120         DeriveDataTypeable
121         StandaloneDeriving
122         ExistentialQuantification
123         MultiParamTypeClasses
124         FlexibleInstances
125         UndecidableInstances
126         ScopedTypeVariables
127         TupleSections
128     ghc-options: -Wall -fwarn-tabs
129     build-depends:
130         base,
131         deepseq,
132         time,
133         QuickCheck,
134         tasty,
135         tasty-hunit,
136         tasty-quickcheck
137     main-is: Main.hs
138     other-modules:
139         Test.TestUtil
140         Test.Calendar.AddDays
141         Test.Calendar.AddDaysRef
142         Test.Calendar.Calendars
143         Test.Calendar.CalendarsRef
144         Test.Calendar.ClipDates
145         Test.Calendar.ClipDatesRef
146         Test.Calendar.ConvertBack
147         Test.Calendar.Easter
148         Test.Calendar.EasterRef
149         Test.Calendar.LongWeekYears
150         Test.Calendar.LongWeekYearsRef
151         Test.Calendar.MonthDay
152         Test.Calendar.MonthDayRef
153         Test.Calendar.Valid
154         Test.Clock.Conversion
155         Test.Clock.Resolution
156         Test.Clock.TAI
157         Test.Format.Format
158         Test.Format.ParseTime
159         Test.LocalTime.Time
160         Test.LocalTime.TimeRef
161
162 test-suite test-unix
163     if os(windows)
164         buildable: False
165     type: exitcode-stdio-1.0
166     hs-source-dirs: test/unix
167     default-language: Haskell2010
168     default-extensions:
169         Rank2Types
170         CPP
171         DeriveDataTypeable
172         StandaloneDeriving
173         ExistentialQuantification
174         MultiParamTypeClasses
175         FlexibleInstances
176         UndecidableInstances
177         ScopedTypeVariables
178     ghc-options: -Wall -fwarn-tabs
179     c-sources: test/unix/Test/Format/FormatStuff.c
180     build-depends:
181         base,
182         deepseq,
183         time,
184         random,
185         QuickCheck,
186         tasty,
187         tasty-hunit,
188         tasty-quickcheck
189     if !os(windows)
190         build-depends: unix
191     main-is: Main.hs
192     other-modules:
193         Test.TestUtil
194         Test.Format.Format
195         Test.LocalTime.TimeZone