]> gitweb @ CieloNegro.org - time-w3c.git/blobdiff - time-w3c.cabal
Cabal-version: >= 1.6
[time-w3c.git] / time-w3c.cabal
index b8421729673dd77e3369e617e845f45971a05cf1..57124b3b6a4666fe4777f2f4d3a6735f8aa8fb1e 100644 (file)
@@ -15,9 +15,17 @@ Stability:           Experimental
 Homepage:            http://cielonegro.org/W3CDateTime.html
 Category:            Web
 Build-type:          Simple
-Cabal-version:       >= 1.2.3
+Cabal-version:       >= 1.6
 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
@@ -39,3 +47,29 @@ Library
 
     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
+        FlexibleContexts
+        MultiParamTypeClasses
+
+    GHC-Options:
+        -Wall