weather-api 0.4.1 → 0.4.2
raw patch · 2 files changed
+3/−3 lines, 2 files
Files
- WeatherApi/WWOnline.hs +2/−2
- weather-api.cabal +1/−1
WeatherApi/WWOnline.hs view
@@ -16,7 +16,7 @@ import WeatherApi.Util -apiUrl = "http://free.worldweatheronline.com/feed/weather.ashx?"+apiUrl = "http://api.worldweatheronline.com/free/v1/weather.ashx?" type ApiKey = String @@ -37,7 +37,7 @@ initApi key = let params = [("format", "json"), ("key", key)] urn c = urlEncodeVars $ params ++ [("q", encodeString c)]- in Config { apiHost = "free.worldweatheronline.com"+ in Config { apiHost = "api.worldweatheronline.com" , apiPort = 80 , queryFun = makeQueryFun urn }
weather-api.cabal view
@@ -1,5 +1,5 @@ Name: weather-api-Version: 0.4.1+Version: 0.4.2 Synopsis: Weather api implemented in haskell Description: This library implement generic api for retrieving weather