[Haskell-cafe] HTTP package freezes on Windows 7

Phil phil.beadling at googlemail.com
Mon Mar 15 21:05:05 EDT 2010


Scrap my original query - the problem isn't as black & white as I thought.

The below works fine - I've changed the response type from json to 
xml.... strange, but for some reason downloading json doesn't work.... 
it's fine on Linux.

I'm guessing this is more likely to be a Windows issue rather than a 
Haskell issue - any ideas?


import qualified Network.HTTP as HTTP

main :: IO ()
main
    = do
      x <- getLocation
      print x



getLocation = (HTTP.simpleHTTP $ HTTP.getRequest url) >>= 
HTTP.getResponseBody
     where
         url = 
"http://maps.google.com/maps/api/geocode/xml?address=London&sensor=false"




More information about the Haskell-Cafe mailing list