changelog: mention ISO8601 module (#40)
[packages/time.git] / time.cabal
1 name:           time
2 version:        1.9
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.Format.ISO8601,
71         Data.Time
72     default-extensions:    CPP
73     c-sources: lib/cbits/HsTime.c
74     other-modules:
75         Data.Format
76         Data.Time.Calendar.Private,
77         Data.Time.Calendar.Days,
78         Data.Time.Calendar.Gregorian,
79         Data.Time.Calendar.CalendarDiffDays,
80         Data.Time.Calendar.Week,
81         Data.Time.Calendar.JulianYearDay,
82         Data.Time.Clock.Internal.DiffTime,
83         Data.Time.Clock.Internal.AbsoluteTime,
84         Data.Time.Clock.Internal.NominalDiffTime,
85         Data.Time.Clock.Internal.POSIXTime,
86         Data.Time.Clock.Internal.UniversalTime,
87         Data.Time.Clock.Internal.SystemTime,
88         Data.Time.Clock.Internal.UTCTime,
89         Data.Time.Clock.Internal.CTimeval,
90         Data.Time.Clock.Internal.CTimespec,
91         Data.Time.Clock.Internal.UTCDiff,
92         Data.Time.LocalTime.Internal.TimeZone,
93         Data.Time.LocalTime.Internal.TimeOfDay,
94         Data.Time.LocalTime.Internal.CalendarDiffTime
95         Data.Time.LocalTime.Internal.LocalTime,
96         Data.Time.LocalTime.Internal.ZonedTime,
97         Data.Time.Format.Parse,
98         Data.Time.Format.Locale,
99         Data.Time.Format.Format.Class,
100         Data.Time.Format.Format.Instances,
101         Data.Time.Format.Parse.Class,
102         Data.Time.Format.Parse.Instances
103     include-dirs: lib/include
104     if os(windows)
105         install-includes:
106             HsTime.h
107     else
108         install-includes:
109             HsTime.h
110             HsTimeConfig.h
111
112 test-suite ShowDefaultTZAbbreviations
113     type: exitcode-stdio-1.0
114     hs-source-dirs: test
115     default-language: Haskell2010
116     ghc-options: -Wall -fwarn-tabs
117     build-depends:
118         base,
119         time
120     main-is: ShowDefaultTZAbbreviations.hs
121
122 test-suite test-main
123     type: exitcode-stdio-1.0
124     hs-source-dirs: test/main
125     default-language: Haskell2010
126     default-extensions:
127         Rank2Types
128         CPP
129         DeriveDataTypeable
130         StandaloneDeriving
131         ExistentialQuantification
132         MultiParamTypeClasses
133         FlexibleInstances
134         UndecidableInstances
135         ScopedTypeVariables
136         TupleSections
137     ghc-options: -Wall -fwarn-tabs
138     build-depends:
139         base,
140         deepseq,
141         time,
142         QuickCheck,
143         tasty,
144         tasty-hunit,
145         tasty-quickcheck
146     main-is: Main.hs
147     other-modules:
148         Test.TestUtil
149         Test.Arbitrary
150         Test.Calendar.AddDays
151         Test.Calendar.AddDaysRef
152         Test.Calendar.Calendars
153         Test.Calendar.CalendarsRef
154         Test.Calendar.ClipDates
155         Test.Calendar.ClipDatesRef
156         Test.Calendar.ConvertBack
157         Test.Calendar.Duration
158         Test.Calendar.Easter
159         Test.Calendar.EasterRef
160         Test.Calendar.LongWeekYears
161         Test.Calendar.LongWeekYearsRef
162         Test.Calendar.MonthDay
163         Test.Calendar.MonthDayRef
164         Test.Calendar.Valid
165         Test.Calendar.Week
166         Test.Clock.Conversion
167         Test.Clock.Resolution
168         Test.Clock.TAI
169         Test.Format.Format
170         Test.Format.ParseTime
171         Test.Format.ISO8601
172         Test.LocalTime.CalendarDiffTime
173         Test.LocalTime.Time
174         Test.LocalTime.TimeOfDay
175         Test.LocalTime.TimeRef
176
177 test-suite test-unix
178     if os(windows)
179         buildable: False
180     type: exitcode-stdio-1.0
181     hs-source-dirs: test/unix
182     default-language: Haskell2010
183     default-extensions:
184         Rank2Types
185         CPP
186         DeriveDataTypeable
187         StandaloneDeriving
188         ExistentialQuantification
189         MultiParamTypeClasses
190         FlexibleInstances
191         UndecidableInstances
192         ScopedTypeVariables
193     ghc-options: -Wall -fwarn-tabs
194     c-sources: test/unix/Test/Format/FormatStuff.c
195     build-depends:
196         base,
197         deepseq,
198         time,
199         random,
200         QuickCheck,
201         tasty,
202         tasty-hunit,
203         tasty-quickcheck
204     if !os(windows)
205         build-depends: unix
206     main-is: Main.hs
207     other-modules:
208         Test.TestUtil
209         Test.Format.Format
210         Test.LocalTime.TimeZone