summaryrefslogtreecommitdiff
path: root/hmatrix.cabal
diff options
context:
space:
mode:
authorDaniel Schüssler <danlex@gmx.de>2009-01-19 10:41:49 +0000
committerDaniel Schüssler <danlex@gmx.de>2009-01-19 10:41:49 +0000
commit2b8aea01b22db9aedb5bd6bdc327a02bfa92e1c2 (patch)
tree2029e9cd03c6f4d0e27a4220f08c2f63f3ff59d5 /hmatrix.cabal
parentbde1d4bec13cfaa22fab938156c0860539637473 (diff)
Compatibility with QuickCheck 2 as well as QuickCheck 1
Used the C preprocessor to make it compile against either QuickCheck version. Added some implementations for the new "shrink" method of class Arbitrary. The tests (runTests 10) succeed when compiled with QC 1. With QC 2 (runTests 10 too) the fourth "vector operations" test (complex trigonometry) now fails. I don't know whether this is a bug in my changes, or whether QC 2 just generates Doubles differently and thus uncovered a real bug.
Diffstat (limited to 'hmatrix.cabal')
-rw-r--r--hmatrix.cabal6
1 files changed, 4 insertions, 2 deletions
diff --git a/hmatrix.cabal b/hmatrix.cabal
index 516e6b5..c1b4e01 100644
--- a/hmatrix.cabal
+++ b/hmatrix.cabal
@@ -15,6 +15,8 @@ tested-with: GHC ==6.10.1
15 15
16cabal-version: >=1.2 16cabal-version: >=1.2
17build-type: Simple 17build-type: Simple
18extra-source-files: lib/Numeric/LinearAlgebra/Tests/quickCheckCompat.h
19
18 20
19flag splitBase 21flag splitBase
20 description: Choose the new smaller, split-up base package. 22 description: Choose the new smaller, split-up base package.
@@ -34,9 +36,9 @@ flag unsafe
34 36
35library 37library
36 if flag(splitBase) 38 if flag(splitBase)
37 build-depends: base >= 3, array, QuickCheck < 2, HUnit, storable-complex 39 build-depends: base >= 3, array, QuickCheck, HUnit, storable-complex
38 else 40 else
39 build-depends: base < 3, QuickCheck < 2, HUnit, storable-complex 41 build-depends: base < 3, QuickCheck, HUnit, storable-complex
40 42
41 Build-Depends: haskell98 43 Build-Depends: haskell98
42 Extensions: ForeignFunctionInterface, 44 Extensions: ForeignFunctionInterface,