diff options
Diffstat (limited to 'hmatrix.cabal')
-rw-r--r-- | hmatrix.cabal | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/hmatrix.cabal b/hmatrix.cabal index 0cd4c03..6d29d2e 100644 --- a/hmatrix.cabal +++ b/hmatrix.cabal | |||
@@ -78,13 +78,16 @@ flag vector | |||
78 | description: Use Data.Vector.Storable type from "vector" package. | 78 | description: Use Data.Vector.Storable type from "vector" package. |
79 | default: False | 79 | default: False |
80 | 80 | ||
81 | flag binary | ||
82 | description: Define Binary instances | ||
83 | default: True | ||
84 | |||
81 | library | 85 | library |
82 | 86 | ||
83 | Build-Depends: base >= 4 && < 5, | 87 | Build-Depends: base >= 4 && < 5, |
84 | array, | 88 | array, |
85 | storable-complex, | 89 | storable-complex, |
86 | process, | 90 | process |
87 | binary | ||
88 | 91 | ||
89 | Extensions: ForeignFunctionInterface, | 92 | Extensions: ForeignFunctionInterface, |
90 | CPP | 93 | CPP |
@@ -131,6 +134,10 @@ library | |||
131 | Build-Depends: vector >= 0.7 | 134 | Build-Depends: vector >= 0.7 |
132 | cpp-options: -DVECTOR | 135 | cpp-options: -DVECTOR |
133 | 136 | ||
137 | if flag(binary) | ||
138 | Build-Depends: binary | ||
139 | cpp-options: -DBINARY | ||
140 | |||
134 | if flag(tests) | 141 | if flag(tests) |
135 | Build-Depends: QuickCheck, HUnit, random | 142 | Build-Depends: QuickCheck, HUnit, random |
136 | exposed-modules: Numeric.LinearAlgebra.Tests | 143 | exposed-modules: Numeric.LinearAlgebra.Tests |