Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
taktoa opened this issue Apr 17, 2017 · 0 comments
Open

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

taktoa opened this issue Apr 17, 2017 · 0 comments

Comments

@taktoa
Copy link

taktoa commented Apr 17, 2017

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"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant