diff options
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 |