Open idontgetoutmuch opened 6 years ago
Ah but maybe I don't need to do this anyway.
@idontgetoutmuch how did you resolve this?
I don't think I did resolve that particular issue but it's all working - see here: https://github.com/haskell-numerics/hmatrix-sundials/blob/master/src/Numeric/Sundials/Arkode.hsc
My best work around for this sort of issue is to use hsc2hs
and inline-c
in the same Haskell module.
With hsc2hs
you can use
type SunIndexType = #type sunindextype
and then the rest of your code is correct.
👍
I am trying to use sundials via inline-c. I am starting to define the types some of which are quite complex :( Even the simplest seems to throw up problems. For example what should I do here?
At the moment I have this