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

http-client sample program hangs #65

Closed
rahulmutt opened this issue Dec 11, 2017 · 1 comment
Closed

http-client sample program hangs #65

rahulmutt opened this issue Dec 11, 2017 · 1 comment
Labels

Comments

@rahulmutt
Copy link
Member

The following program from http-client docs hangs.

import Network.HTTP.Client
import Network.HTTP.Types.Status (statusCode)

main :: IO ()
main = do
  manager <- newManager defaultManagerSettings

  request <- parseRequest "http://eta-lang.org"
  response <- httpLbs request manager

  putStrLn $ "The status code was: " ++ (show $ statusCode $ responseStatus response)
  print $ responseBody response
@rahulmutt rahulmutt added the bug label Dec 11, 2017
@rahulmutt
Copy link
Member Author

Fixed now.

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

No branches or pull requests

1 participant