]> gitweb @ CieloNegro.org - time-w3c.git/blobdiff - time-w3c.cabal
'parse' should assume EOF after w3cDateTime.
[time-w3c.git] / time-w3c.cabal
index 6b08679ce6627e9768efa6f34752df0b031826a0..dabe6dd24359b12db250b27b4c3c7dd6e5f5cc22 100644 (file)
@@ -4,8 +4,8 @@ Synopsis:            Parse, format and convert W3C Date and Time
 Description:
         This module provides functionalities to parse and format W3C
         Date and Time. The module can also be used to convert it
 Description:
         This module provides functionalities to parse and format W3C
         Date and Time. The module can also be used to convert it
-        from/to "Data.Time.Calendar.Day" and
-        "Data.Time.LocalTime.ZonedTime".
+        from/to 'Data.Time.Calendar.Day' and
+        'Data.Time.LocalTime.ZonedTime'.
 
 License:             PublicDomain
 License-file:        COPYING
 
 License:             PublicDomain
 License-file:        COPYING
@@ -15,19 +15,56 @@ Stability:           Experimental
 Homepage:            http://cielonegro.org/W3CDateTime.html
 Category:            Web
 Build-type:          Simple
 Homepage:            http://cielonegro.org/W3CDateTime.html
 Category:            Web
 Build-type:          Simple
-Cabal-version:       >= 1.2.3
+Cabal-version:       >= 1.6
 Extra-source-files:
 
 Extra-source-files:
 
+Source-Repository head
+    Type: git
+    Location: git://git.cielonegro.org/time-w3c.git
+
+Flag build-test-suite
+    Description: Build the tst suite.
+    Default:     False
+
 Library
     Exposed-modules:
         Data.Time.W3C
         Data.Time.W3C.Format
 Library
     Exposed-modules:
         Data.Time.W3C
         Data.Time.W3C.Format
+        Data.Time.W3C.Parser
+        Data.Time.W3C.Parser.Parsec
         Data.Time.W3C.Types
 
     Build-depends:
         base >= 4 && < 5,
         Data.Time.W3C.Types
 
     Build-depends:
         base >= 4 && < 5,
-        convertible >= 1.0,
-        time >= 1.1
+        convertible >= 1.0 && < 2,
+        parsec >= 3 && < 4,
+        time >= 1.1 && < 2
+
+    Extensions:
+        DeriveDataTypeable
+        FlexibleContexts
+        MultiParamTypeClasses
+
+    GHC-Options:
+        -Wall
+
+Executable W3CDateTimeUnitTest
+    Main-Is:
+        W3CDateTimeUnitTest.hs
+
+    if flag(build-test-suite)
+        Buildable: True
+        Build-Depends: HUnit >= 1.2 && < 2
+    else
+        Buildable: False
+
+    Hs-Source-Dirs:
+        ., tests
+
+    Other-Modules:
+        ConversionTest
+        FormatterTest
+        ParsecParserTest
 
     Extensions:
         DeriveDataTypeable
 
     Extensions:
         DeriveDataTypeable