summaryrefslogtreecommitdiff
path: root/hmatrix.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'hmatrix.cabal')
-rw-r--r--hmatrix.cabal12
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 @@
1Name: hmatrix 1Name: hmatrix
2Version: 0.8.3.1 2Version: 0.8.3.2
3License: GPL 3License: GPL
4License-file: LICENSE 4License-file: LICENSE
5Author: Alberto Ruiz 5Author: 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
59flag safe-cheap
60 description: use slower non-blocking "safe" foreign calls
61 to GSL special functions.
62 default: False
63
59library 64library
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