RE: Exposing Haskell functions with string arguments in a DLL

2000-10-16 Thread Simon Marlow
L PROTECTED]] > Sent: Monday, October 16, 2000 12:20 PM > To: Simon Marlow; '[EMAIL PROTECTED]' > Subject: AW: Exposing Haskell functions with string arguments in a DLL > > > Thanks!! What about the other direction? (Haskell function > with string result) > >

AW: Exposing Haskell functions with string arguments in a DLL

2000-10-16 Thread Lescher Christian
PROTECTED]' > Betreff: RE: Exposing Haskell functions with string arguments in a DLL > > > > 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

RE: Exposing Haskell functions with string arguments in a DLL

2000-10-16 Thread Simon Marlow
> 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...?). For converting a static null-terminated C string to a Haskell String, use

Exposing Haskell functions with string arguments in a DLL

2000-10-11 Thread Lescher Christian
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