From 55036a5ea4a6e590d0404638b2823c6a4aec3fba Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Thu, 20 Mar 2025 13:01:24 +0100 Subject: Separate arith routines into a library The point is that this separate library does not depend on orthotope. --- ox-arrays.cabal | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'ox-arrays.cabal') diff --git a/ox-arrays.cabal b/ox-arrays.cabal index 19a61ab..ecd3ba7 100644 --- a/ox-arrays.cabal +++ b/ox-arrays.cabal @@ -30,9 +30,6 @@ flag nonportable-simd library exposed-modules: Data.Array.Mixed.Internal.Arith - Data.Array.Mixed.Internal.Arith.Foreign - Data.Array.Mixed.Internal.Arith.Lists - Data.Array.Mixed.Internal.Arith.Lists.TH Data.Array.Mixed.Lemmas Data.Array.Mixed.Permutation Data.Array.Mixed.Shape @@ -52,6 +49,8 @@ library Data.Array.Nested.Trace.TH build-depends: + strided-array-ops, + base >=4.18 && <4.21, deepseq, ghc-typelits-knownnat, @@ -60,6 +59,27 @@ library template-haskell, vector hs-source-dirs: src + + default-language: Haskell2010 + ghc-options: -Wall + other-extensions: TemplateHaskell + +library strided-array-ops + exposed-modules: + Data.Array.Strided + Data.Array.Strided.Array + Data.Array.Strided.Arith + Data.Array.Strided.Arith.Internal + Data.Array.Strided.Arith.Internal.Foreign + Data.Array.Strided.Arith.Internal.Lists + Data.Array.Strided.Arith.Internal.Lists.TH + build-depends: + base, + ghc-typelits-knownnat, + ghc-typelits-natnormalise, + template-haskell, + vector + hs-source-dirs: ops c-sources: cbits/arith.c cc-options: -O3 -Wall -Wextra -std=c99 @@ -112,6 +132,7 @@ benchmark bench main-is: Main.hs build-depends: ox-arrays, + strided-array-ops, base, hmatrix, orthotope, -- cgit v1.2.3-70-g09d2