typelead / eta-hackage

A set of patches to make Hackage compatible with the Eta language.
64 stars 31 forks source link

http-client sample program hangs #65

Closed rahulmutt closed 6 years ago

rahulmutt commented 6 years ago

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 commented 6 years ago

Fixed now.