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


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to