diff options
author | Alberto Ruiz <aruiz@um.es> | 2010-05-12 08:33:37 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2010-05-12 08:33:37 +0000 |
commit | ecb38d98f853d969864e586a445a1432445fdab2 (patch) | |
tree | 4ca5edd0b9a37adec66bffb764d86ae636f34d8f /hmatrix.cabal | |
parent | ff8ba85a52acdd1e30f45ba73ae0c40986c8a9d4 (diff) |
flag -fvector
Diffstat (limited to 'hmatrix.cabal')
-rw-r--r-- | hmatrix.cabal | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/hmatrix.cabal b/hmatrix.cabal index e684acc..cbf4a55 100644 --- a/hmatrix.cabal +++ b/hmatrix.cabal | |||
@@ -65,6 +65,10 @@ flag unsafe | |||
65 | description: Compile the library with bound checking disabled. | 65 | description: Compile the library with bound checking disabled. |
66 | default: False | 66 | default: False |
67 | 67 | ||
68 | flag vector | ||
69 | description: Use Data.Vector.Storable type from "vector" package. | ||
70 | default: False | ||
71 | |||
68 | library | 72 | library |
69 | 73 | ||
70 | Build-Depends: base >= 4 && < 5, | 74 | Build-Depends: base >= 4 && < 5, |
@@ -110,6 +114,10 @@ library | |||
110 | C-sources: lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.c, | 114 | C-sources: lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.c, |
111 | lib/Numeric/GSL/gsl-aux.c | 115 | lib/Numeric/GSL/gsl-aux.c |
112 | 116 | ||
117 | if flag(vector) | ||
118 | Build-Depends: vector | ||
119 | cpp-options: -DVECTOR | ||
120 | |||
113 | if flag(tests) | 121 | if flag(tests) |
114 | Build-Depends: QuickCheck, HUnit | 122 | Build-Depends: QuickCheck, HUnit |
115 | exposed-modules: Numeric.LinearAlgebra.Tests | 123 | exposed-modules: Numeric.LinearAlgebra.Tests |