[commit: packages/deepseq] master: Convert `deepseq.cabal` to `cabal-version>=1.10` (895887f)

git at git.haskell.org git
Fri Oct 11 21:04:52 UTC 2013


Repository : ssh://git at git.haskell.org/deepseq

On branch  : master
Link       : http://git.haskell.org/packages/deepseq.git/commitdiff/895887f3131c4d707ed3f41eae6c59a5488a3b05

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

commit 895887f3131c4d707ed3f41eae6c59a5488a3b05
Author: Herbert Valerio Riedel <hvr at gnu.org>
Date:   Fri Oct 11 12:23:37 2013 +0200

    Convert `deepseq.cabal` to `cabal-version>=1.10`
    
    This also resurrects compatibility with older GHC versions back to
    version 7.0.1 and specifies more accurate and verified build-depends.
    
    Signed-off-by: Herbert Valerio Riedel <hvr at gnu.org>


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

895887f3131c4d707ed3f41eae6c59a5488a3b05
 Control/DeepSeq.hs |    3 ++-
 deepseq.cabal      |   27 +++++++++++++++++++--------
 2 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/Control/DeepSeq.hs b/Control/DeepSeq.hs
index 2b3fa29..88aa5c3 100644
--- a/Control/DeepSeq.hs
+++ b/Control/DeepSeq.hs
@@ -1,4 +1,5 @@
-#ifdef __GLASGOW_HASKELL__
+{-# LANGUAGE CPP #-}
+#if __GLASGOW_HASKELL__ >= 702 && MIN_VERSION_array(0,4,0)
 {-# LANGUAGE Safe #-}
 #endif
 -----------------------------------------------------------------------------
diff --git a/deepseq.cabal b/deepseq.cabal
index f3a8b7d..af91fa2 100644
--- a/deepseq.cabal
+++ b/deepseq.cabal
@@ -20,17 +20,28 @@ description:
     components) which defines strategies for fully evaluating different
     data types.
     .
+    If you want to automatically derive 'NFData' instances via the
+    "GHC.Generics" facility, there is a companion package
+    <http://hackage.haskell.org/package/deepseq-generics deepseq-generics>
+    which builds on top of this package.
 build-type:     Simple
-cabal-version:  >=1.6
+cabal-version:  >=1.10
 
 source-repository head
-    type:     git
-    location: http://git.haskell.org/packages/deepseq.git
+  type:     git
+  location: http://git.haskell.org/packages/deepseq.git
 
-library {
+source-repository this
+  type:     git
+  location: http://git.haskell.org/packages/deepseq.git
+  tag:      bytestring-1.3.0.2-release
+
+library
+  default-language: Haskell98
+  other-extensions: CPP
+  if impl(ghc >= 7.2)
+    other-extensions: Safe
   exposed-modules: Control.DeepSeq
-  build-depends: base       >= 4.5 && < 5, 
-                 array      >= 0.1 && < 0.5
+  build-depends: base       >= 4.3 && < 4.8,
+                 array      >= 0.3 && < 0.6
   ghc-options: -Wall
-  extensions: CPP
-}




More information about the ghc-commits mailing list