[commit: packages/binary] master: Add ghc-prim dependency to all targets. (55d5a94)
git at git.haskell.org
git at git.haskell.org
Sat Feb 4 21:17:19 UTC 2017
Repository : ssh://git@git.haskell.org/binary
On branch : master
Link : http://git.haskell.org/packages/binary.git/commitdiff/55d5a94cde9f8d21db469288941e97a5df8d94bd
>---------------------------------------------------------------
commit 55d5a94cde9f8d21db469288941e97a5df8d94bd
Author: Lennart Kolmodin <kolmodin at gmail.com>
Date: Sun May 1 11:19:58 2016 +0200
Add ghc-prim dependency to all targets.
Now that Generics is used in all targets, we also need ghc-prim.
>---------------------------------------------------------------
55d5a94cde9f8d21db469288941e97a5df8d94bd
binary.cabal | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/binary.cabal b/binary.cabal
index e7ca8a4..a282ea0 100644
--- a/binary.cabal
+++ b/binary.cabal
@@ -74,6 +74,10 @@ test-suite qc
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -Wall -O2 -threaded
+ if impl(ghc <= 7.6)
+ -- prior to ghc-7.4 generics lived in ghc-prim
+ build-depends: ghc-prim
+
test-suite read-write-file
type: exitcode-stdio-1.0
@@ -90,6 +94,10 @@ test-suite read-write-file
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -Wall
+ if impl(ghc <= 7.6)
+ -- prior to ghc-7.4 generics lived in ghc-prim
+ build-depends: ghc-prim
+
benchmark bench
type: exitcode-stdio-1.0
@@ -104,6 +112,10 @@ benchmark bench
c-sources: benchmarks/CBenchmark.c
include-dirs: benchmarks
ghc-options: -O2
+ if impl(ghc <= 7.6)
+ -- prior to ghc-7.4 generics lived in ghc-prim
+ build-depends: ghc-prim
+
benchmark get
type: exitcode-stdio-1.0
@@ -120,6 +132,10 @@ benchmark get
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -O2 -Wall
+ if impl(ghc <= 7.6)
+ -- prior to ghc-7.4 generics lived in ghc-prim
+ build-depends: ghc-prim
+
benchmark put
type: exitcode-stdio-1.0
@@ -176,3 +192,6 @@ benchmark builder
-- build dependencies from using binary source rather than depending on the library
build-depends: array, containers
ghc-options: -O2
+ if impl(ghc <= 7.6)
+ -- prior to ghc-7.4 generics lived in ghc-prim
+ build-depends: ghc-prim
More information about the ghc-commits
mailing list