aboutsummaryrefslogtreecommitdiff
path: root/ox-arrays.cabal
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2024-05-23 00:18:17 +0200
committerTom Smeding <tom@tomsmeding.com>2024-05-23 00:18:17 +0200
commita0010622885dcb55a916bf3514c0e9040f6871e9 (patch)
tree9e10c18eaf5c873d50e1f88a3bf114179c151769 /ox-arrays.cabal
parent4b74d1b1f7c46a4b3907838bee11f669060d3a23 (diff)
Fast numeric operations for Num
Diffstat (limited to 'ox-arrays.cabal')
-rw-r--r--ox-arrays.cabal9
1 files changed, 9 insertions, 0 deletions
diff --git a/ox-arrays.cabal b/ox-arrays.cabal
index 58fccf9..3f4fa5b 100644
--- a/ox-arrays.cabal
+++ b/ox-arrays.cabal
@@ -10,15 +10,23 @@ library
Data.Array.Mixed
Data.Array.Nested
Data.Array.Nested.Internal
+ Data.Array.Nested.Internal.Arith
+ Data.Array.Nested.Internal.Arith.Foreign
+ Data.Array.Nested.Internal.Arith.Lists
build-depends:
base >=4.18 && <4.20,
ghc-typelits-knownnat,
ghc-typelits-natnormalise,
orthotope,
+ template-haskell,
vector
hs-source-dirs: src
+ c-sources: cbits/arith.c
+ -- hmatrix assumes sse2, so we can too
+ cc-options: -O3 -msse2 -Wall -Wextra
default-language: Haskell2010
ghc-options: -Wall
+ other-extensions: TemplateHaskell
test-suite example
type: exitcode-stdio-1.0
@@ -36,6 +44,7 @@ benchmark bench
build-depends:
ox-arrays,
base,
+ hmatrix,
tasty-bench
hs-source-dirs: bench
default-language: Haskell2010