test units
[time-w3c.git] / time-w3c.cabal
1 Name:                time-w3c
2 Version:             0.1
3 Synopsis:            Parse, format and convert W3C Date and Time
4 Description:
5         This module provides functionalities to parse and format W3C
6         Date and Time. The module can also be used to convert it
7         from/to "Data.Time.Calendar.Day" and
8         "Data.Time.LocalTime.ZonedTime".
9
10 License:             PublicDomain
11 License-file:        COPYING
12 Author:              PHO <pho AT cielonegro DOT org>
13 Maintainer:          PHO <pho AT cielonegro DOT org>
14 Stability:           Experimental
15 Homepage:            http://cielonegro.org/W3CDateTime.html
16 Category:            Web
17 Build-type:          Simple
18 Cabal-version:       >= 1.2.3
19 Extra-source-files:
20
21 Source-Repository head
22     Type: git
23     Location: git://git.cielonegro.org/time-w3c.git
24
25 Flag build-test-suite
26     Description: Build the tst suite.
27     Default:     False
28
29 Library
30     Exposed-modules:
31         Data.Time.W3C
32         Data.Time.W3C.Format
33         Data.Time.W3C.Parser
34         Data.Time.W3C.Parser.Parsec
35         Data.Time.W3C.Types
36
37     Build-depends:
38         base >= 4 && < 5,
39         convertible >= 1.0 && < 2,
40         parsec >= 3 && < 4,
41         time >= 1.1 && < 2
42
43     Extensions:
44         DeriveDataTypeable
45         FlexibleContexts
46         MultiParamTypeClasses
47
48     GHC-Options:
49         -Wall
50
51 Executable W3CDateTimeUnitTest
52     Main-Is:
53         W3CDateTimeUnitTest.hs
54
55     if flag(build-test-suite)
56         Buildable: True
57         Build-Depends: HUnit >= 1.2 && < 2
58     else
59         Buildable: False
60
61     Hs-Source-Dirs:
62         ., tests
63
64     Other-Modules:
65         ParsecParserTest
66
67     Extensions:
68         DeriveDataTypeable
69         FlexibleContexts
70         MultiParamTypeClasses
71
72     GHC-Options:
73         -Wall