GaloisInc / curl

A Haskell binding to the curl library
Other
30 stars 18 forks source link

Network.Curl.withCurlDo should have type `NFData a => IO a -> IO a`? #18

Open taktoa opened 7 years ago

taktoa commented 7 years ago

The documentation for Network.Curl.withCurlDo says:

Should be used once to wrap all uses of libcurl. WARNING: the argument should not return before it is completely done with curl (e.g., no forking or lazy returns)

If a lazy return is problematic, shouldn't this function call fmap deepseq on the IO a "callback"?