Refactor & modernize `hpc.cabal` to `cabal-version>=1.10`
authorHerbert Valerio Riedel <hvr@gnu.org>
Thu, 24 Oct 2013 09:32:26 +0000 (11:32 +0200)
committerHerbert Valerio Riedel <hvr@gnu.org>
Thu, 24 Oct 2013 09:32:26 +0000 (11:32 +0200)
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@gnu.org>
old-time.cabal

index c0ffd7b..746e181 100644 (file)
@@ -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@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@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