diff options
author | Dominic Steinitz <dominic@steinitz.org> | 2018-03-30 09:34:14 +0100 |
---|---|---|
committer | Dominic Steinitz <dominic@steinitz.org> | 2018-03-30 09:34:14 +0100 |
commit | 19f5b8c0fdf9b16250cfdc7acd0eb897d1735d0b (patch) | |
tree | 5f7d994d1342ff5a0ffaa2c4c26670ed248577bc | |
parent | 71a3071a0ecc5c8ebf2b9c0a66a472ff187fdd06 (diff) |
Only depend on installed sources
-rw-r--r-- | packages/sundials/hmatrix-sundials.cabal | 3 | ||||
-rw-r--r-- | packages/sundials/src/Bar.hsc | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/packages/sundials/hmatrix-sundials.cabal b/packages/sundials/hmatrix-sundials.cabal index 3304cb8..83a30c7 100644 --- a/packages/sundials/hmatrix-sundials.cabal +++ b/packages/sundials/hmatrix-sundials.cabal | |||
@@ -30,6 +30,7 @@ library | |||
30 | exposed-modules: Numeric.Sundials.Arkode.ODE | 30 | exposed-modules: Numeric.Sundials.Arkode.ODE |
31 | other-modules: Types, | 31 | other-modules: Types, |
32 | Bar | 32 | Bar |
33 | c-sources: src/helpers.c src/helpers.h | ||
33 | 34 | ||
34 | executable sundials | 35 | executable sundials |
35 | main-is: Main.hs | 36 | main-is: Main.hs |
@@ -51,4 +52,4 @@ executable sundials | |||
51 | hs-source-dirs: src | 52 | hs-source-dirs: src |
52 | default-language: Haskell2010 | 53 | default-language: Haskell2010 |
53 | extra-libraries: sundials_arkode | 54 | extra-libraries: sundials_arkode |
54 | C-sources: src/helpers.c src/helpers.h | 55 | c-sources: src/helpers.c src/helpers.h |
diff --git a/packages/sundials/src/Bar.hsc b/packages/sundials/src/Bar.hsc index 4fe1b4b..26f0bf0 100644 --- a/packages/sundials/src/Bar.hsc +++ b/packages/sundials/src/Bar.hsc | |||
@@ -6,9 +6,11 @@ import Foreign | |||
6 | import Foreign.C.Types | 6 | import Foreign.C.Types |
7 | import Foreign.C.String | 7 | import Foreign.C.String |
8 | 8 | ||
9 | #include "/Users/dom/sundials/include/sundials/sundials_nvector.h" | 9 | |
10 | #include "/Users/dom/sundials/include/nvector/nvector_serial.h" | 10 | #include <stdio.h> |
11 | #include "/Users/dom/sundials/include/arkode/arkode.h" | 11 | #include <sundials/sundials_nvector.h> |
12 | #include <nvector/nvector_serial.h> | ||
13 | #include <arkode/arkode.h> | ||
12 | 14 | ||
13 | #def typedef struct _generic_N_Vector SunVector; | 15 | #def typedef struct _generic_N_Vector SunVector; |
14 | #def typedef struct _N_VectorContent_Serial SunContent; | 16 | #def typedef struct _N_VectorContent_Serial SunContent; |