X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=time-w3c.git;a=blobdiff_plain;f=time-w3c.cabal;h=d2c51484d8c40adc4517db2bbf04cadd4fb80206;hp=b8421729673dd77e3369e617e845f45971a05cf1;hb=0734f066378beb86c276196367c8716faec9b45c;hpb=3d738487d6fb1077d139fd689279a1ebd27a9fdc diff --git a/time-w3c.cabal b/time-w3c.cabal index b842172..d2c5148 100644 --- a/time-w3c.cabal +++ b/time-w3c.cabal @@ -2,10 +2,12 @@ Name: time-w3c Version: 0.1 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 - from/to "Data.Time.Calendar.Day" and - "Data.Time.LocalTime.ZonedTime". + This package provides functionalities to parse and format W3C + Date and Time. The package can also be used to convert it + from/to 'Data.Time.Calendar.Day' and + 'Data.Time.LocalTime.ZonedTime'. + + See: License: PublicDomain License-file: COPYING @@ -15,8 +17,15 @@ Stability: Experimental Homepage: http://cielonegro.org/W3CDateTime.html Category: Web Build-type: Simple -Cabal-version: >= 1.2.3 -Extra-source-files: +Cabal-version: >= 1.6 + +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: @@ -27,10 +36,36 @@ Library Data.Time.W3C.Types Build-depends: - base >= 4 && < 5, - convertible >= 1.0 && < 2, - parsec >= 3 && < 4, - time >= 1.1 && < 2 + base >= 4.2 && < 4.3, + convertible >= 1.0 && < 1.1, + parsec >= 3.0 && < 3.1, + time >= 1.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