Refactor & modernize `hpc.cabal` to `cabal-version>=1.10`
authorHerbert Valerio Riedel <hvr@gnu.org>
Thu, 24 Oct 2013 08:42:01 +0000 (10:42 +0200)
committerHerbert Valerio Riedel <hvr@gnu.org>
Thu, 24 Oct 2013 08:44:15 +0000 (10:44 +0200)
The `build-depends` have been updated to match the library version
ranges shipped with the GHC versions for which compilation currently
succeeds.

Signed-off-by: Herbert Valerio Riedel <hvr@gnu.org>
hpc.cabal

index 40f59de..2304e58 100644 (file)
--- a/hpc.cabal
+++ b/hpc.cabal
@@ -5,26 +5,40 @@ license:      BSD3
 license-file: LICENSE
 author:       Andy Gill
 maintainer:   libraries@haskell.org
-bug-reports: http://hackage.haskell.org/trac/ghc/newticket?component=Code%20Coverage
+bug-reports:  http://ghc.haskell.org/trac/ghc/newticket?component=Code%20Coverage
 category:     Control
 synopsis:     Code Coverage Library for Haskell
 build-type:   Simple
-Cabal-Version: >= 1.6
+cabal-version:>=1.10
+tested-with:  GHC==7.6.3, GHC==7.6.2, GHC==7.6.1, GHC==7.4.2, GHC==7.4.1, GHC==7.2.2
+description:
+    This package provides the code coverage library for Haskell.
+    .
+    See <http://www.haskell.org/haskellwiki/Haskell_program_coverage> for more
+    information.
 
 source-repository head
     type:     git
     location: http://git.haskell.org/packages/hpc.git
 
+source-repository this
+    type:     git
+    location: http://git.haskell.org/packages/hpc.git
+    tag:      hpc-0.6.0.1-release
+
 Library
+    default-language: Haskell98
+    other-extensions: CPP
+
     exposed-modules:
         Trace.Hpc.Util
         Trace.Hpc.Mix
         Trace.Hpc.Tix
         Trace.Hpc.Reflect
-    extensions: CPP
-    Build-Depends: base       >= 4.5 && < 5,
-                   directory  >= 1   && < 1.3,
-                   time                 < 1.5,
-                   containers >= 0.1 && < 0.6
-    ghc-options: -Wall
 
+    Build-Depends:
+        base       >= 4.4.1 && < 4.8,
+        containers >= 0.4.1 && < 0.6,
+        directory  >= 1.1   && < 1.3,
+        time       >= 1.2   && < 1.5
+    ghc-options: -Wall