
17 Jul
2008
17 Jul
'08
12:36 p.m.
On Thu, Jul 17, 2008 at 12:37 PM, Bayley, Alistair
-- inline your *vect->vect wrapper (ends up in generated .c file) #def void funcWrapper(vect *v) { func(*v); }
foreign import stdcall funcWr unsafe "funcWrapper" :: VectorC -> IO ()
I am using hsc2hs currently, but googling about #def with Cabal I found out that some people were having trouble to make Cabal discover that hsc2hs had created a new C file. Specifically, bug #245 [1] which says that the milestone is undefined. So for now I'm creating a wrapper.[ch] myself. [1] http://hackage.haskell.org/trac/hackage/ticket/245 -- Felipe.