[commit: packages/old-time] master: Refactor & modernize `hpc.cabal` to `cabal-version>=1.10` (3cabda6)

git at git.haskell.org git at git.haskell.org
Thu Oct 24 10:16:08 UTC 2013


Repository : ssh://git@git.haskell.org/old-time

On branch  : master
Link       : http://git.haskell.org/packages/old-time.git/commitdiff/3cabda65b4c67a70fcc0773d27afda7e2cf2c3aa

>---------------------------------------------------------------

commit 3cabda65b4c67a70fcc0773d27afda7e2cf2c3aa
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Thu Oct 24 11:32:26 2013 +0200

    Refactor & modernize `hpc.cabal` to `cabal-version>=1.10`
    
    This restricts the `build-depend` to GHC HEAD/7.8's library versions, as
    the current `old-time` code effectively fails to compile on older
    GHCs (with their older `base` library).
    
    Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>


>---------------------------------------------------------------

3cabda65b4c67a70fcc0773d27afda7e2cf2c3aa
 old-time.cabal |   76 +++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 50 insertions(+), 26 deletions(-)

diff --git a/old-time.cabal b/old-time.cabal
index c0ffd7b..746e181 100644
--- a/old-time.cabal
+++ b/old-time.cabal
@@ -1,39 +1,63 @@
-name:		old-time
-version:	1.1.0.1
+name:           old-time
+version:        1.1.0.2
 -- GHC 7.6.1 released with 1.1.0.1
-license:	BSD3
-license-file:	LICENSE
-maintainer:	libraries at haskell.org
-bug-reports: http://hackage.haskell.org/trac/ghc/newticket?component=libraries/old-time
-synopsis:	Time library
-category:	System
+license:        BSD3
+license-file:   LICENSE
+maintainer:     libraries at haskell.org
+bug-reports:    http://ghc.haskell.org/trac/ghc/newticket?component=libraries/old-time
+synopsis:       Time library
+category:       System
+build-type:     Configure
+cabal-Version:  >=1.10
 description:
-	This package provides the old time library.
-    For new code, the new time library is recommended.
-build-type: Configure
+    This package provides the old time library.
+    .
+    For new projects, the newer
+    <http://hackage.haskell.org/package/time time library>
+    is recommended.
+
 extra-source-files:
-        aclocal.m4
-        config.guess config.sub install-sh
-        configure.ac configure
-        include/HsTimeConfig.h.in
+    aclocal.m4
+    config.guess
+    config.sub
+    configure
+    configure.ac
+    include/HsTimeConfig.h.in
+    install-sh
+
 extra-tmp-files:
-        config.log config.status autom4te.cache
-        include/HsTimeConfig.h
-Cabal-Version: >= 1.6
+    autom4te.cache
+    config.log
+    config.status
+    include/HsTimeConfig.h
+
+source-repository head
+    type:     git
+    location: http://git.haskell.org/packages/old-time.git
+
+source-repository this
+    type:     git
+    location: http://git.haskell.org/packages/old-time.git
+    tag:      old-time-1.1.0.2-release
 
 Library
+    default-language: Haskell2010
+    other-extensions: Trustworthy
+
     exposed-modules:
         System.Time
+
     c-sources:
         cbits/timeUtils.c
+
     include-dirs: include
-    includes:	HsTime.h
-    install-includes:	HsTime.h HsTimeConfig.h
-    extensions:	CPP, ForeignFunctionInterface
-    build-depends: base >= 4.5 && < 5, old-locale
-    nhc98-options: -K2M
+    includes:     HsTime.h
+    install-includes:
+        HsTime.h
+        HsTimeConfig.h
 
-source-repository head
-    type:     git
-    location: http://git.haskell.org/packages/old-time.git
+    build-depends:
+        base       == 4.7.*,
+        old-locale == 1.0.*
 
+    ghc-options: -Wall



More information about the ghc-commits mailing list