[Haskell-cafe] A function callable from C
John Ky
newhoggy at gmail.com
Mon Feb 5 20:33:58 EST 2007
Hi,
The following code works:
> type ServiceMainClosure = DWORD -> IO ()
>
> foreign import ccall "wrapper"
> mkServiceMainClosure :: ServiceMainClosure -> IO (FunPtr
ServiceMainClosure)
But the following doesn't:
> type ServiceMainClosure = DWORD -> [String] -> IO ()
>
> foreign import ccall "wrapper"
> mkServiceMainClosure :: ServiceMainClosure -> IO (FunPtr
ServiceMainClosure)
System\Win32\Service.hsc:108:8: parse error on input `import'
What can I do to get this to work?
Thanks
-John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20070206/60c17991/attachment.htm
More information about the Haskell-Cafe
mailing list