diff options
Diffstat (limited to 'hmatrix.cabal')
-rw-r--r-- | hmatrix.cabal | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/hmatrix.cabal b/hmatrix.cabal index 3d58fa2..4f10e34 100644 --- a/hmatrix.cabal +++ b/hmatrix.cabal | |||
@@ -1,5 +1,5 @@ | |||
1 | Name: hmatrix | 1 | Name: hmatrix |
2 | Version: 0.8.3.1 | 2 | Version: 0.8.3.2 |
3 | License: GPL | 3 | License: GPL |
4 | License-file: LICENSE | 4 | License-file: LICENSE |
5 | Author: Alberto Ruiz | 5 | Author: Alberto Ruiz |
@@ -56,6 +56,11 @@ flag unsafe | |||
56 | description: Compile the library with bound checking disabled. | 56 | description: Compile the library with bound checking disabled. |
57 | default: False | 57 | default: False |
58 | 58 | ||
59 | flag safe-cheap | ||
60 | description: use slower non-blocking "safe" foreign calls | ||
61 | to GSL special functions. | ||
62 | default: False | ||
63 | |||
59 | library | 64 | library |
60 | 65 | ||
61 | Build-Depends: base >= 3 && < 5, | 66 | Build-Depends: base >= 3 && < 5, |
@@ -143,6 +148,11 @@ library | |||
143 | if flag(unsafe) | 148 | if flag(unsafe) |
144 | cpp-options: -DUNSAFE | 149 | cpp-options: -DUNSAFE |
145 | 150 | ||
151 | if flag(safe-cheap) | ||
152 | cpp-options: -DSAFE_CHEAP=safe | ||
153 | else | ||
154 | cpp-options: -DSAFE_CHEAP=unsafe | ||
155 | |||
146 | if impl(ghc < 6.10.2) | 156 | if impl(ghc < 6.10.2) |
147 | cpp-options: -DFINIT | 157 | cpp-options: -DFINIT |
148 | 158 | ||