aboutsummaryrefslogtreecommitdiff
path: root/ox-arrays.cabal
blob: 3f4fa5bf36ad9f79bcebc44a71b98c46679a1cbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cabal-version:   3.0
name:            ox-arrays
version:         0.1.0.0
author:          Tom Smeding
license:         BSD-3-Clause
build-type:      Simple

library
  exposed-modules:
    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
  main-is: Main.hs
  build-depends:
    ox-arrays,
    base
  hs-source-dirs: example
  default-language: Haskell2010
  ghc-options: -Wall

benchmark bench
  type: exitcode-stdio-1.0
  main-is: Main.hs
  build-depends:
    ox-arrays,
    base,
    hmatrix,
    tasty-bench
  hs-source-dirs: bench
  default-language: Haskell2010
  ghc-options: -Wall