Exposing Haskell functions with string arguments in a DLL

12 Oct
2000
12 Oct
'00
1:47 a.m.
How can I convert string arguments (null-terminated strings) to Haskell's [Char]? I saw there is some CString module in package lang of GHC, but I didn't found any documentation about it (e.g. packStringIO...?). How must a function f :: String -> String for usage in a DLL look like in order to convert the string parameter and result? (From earlier Haskell functions with BSTR arguments, I already know how to build a (static) DLL. I use GHC4.08.1.) Christian Lescher
8989
Age (days ago)
8989
Last active (days ago)
0 comments
1 participants
participants (1)
-
Lescher Christian