On Sat, Sep 21, 2013 at 3:25 PM, Miro Karpis <miroslav.karpis@gmail.com> wrote:
Thanks so far, but I'm still having troubles with converting String to CString.... The error I'm getting is:

 Couldn't match type `IO CString' with `Ptr CChar'
 Expected type: CString
   Actual type: IO CString
(...) 
  let param = newCString "someString"

Don't use let there; newCString is in IO.

    param <- newCString "someString"

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net