[darcs-devel] Profiling Darcs
David Roundy
daveroundy at gmail.com
Wed Apr 16 15:06:10 UTC 2008
On Tue, Apr 15, 2008 at 9:54 PM, Gwern Branwen <gwern0 at gmail.com> wrote:
> When I have some time I'll try and do that. But I thought the curl/libwww returned strings because when I looked in URL.hs, I see FFI imports like:
>
> libwww_request_url :: CString -> CString -> CInt -> IO CString
>
> which C strings need to be converted with peekCString to String. Unless I'm misunderstanding something somewhere?
You're right. The URL is passed back and forth as a String. But it
remains a String, so this wouldn't lead to conversion back and forth
between String and PackedString.
David
More information about the darcs-devel
mailing list