2 Apr 2007 18:13
Re[2]: More on FreeBSD/amd64
Bulat Ziganshin <bulat.ziganshin <at> gmail.com>
2007-04-02 16:13:16 GMT
2007-04-02 16:13:16 GMT
Hello Gregory, Monday, April 2, 2007, 7:57:49 PM, you wrote: >> puts :: String -> IO () >> puts s = do write_rawBuffer 1 (unsafeCoerce# (packCString# s)) >> 0 (fromIntegral (length s)) >> return () >> >> (packCString# come from GHC.Pack) you may try to call C function with a result of (packCString# s) -- -- Best regards, Bulat mailto:Bulat.Ziganshin <at> gmail.com
RSS Feed