Safe Haskell | None |
---|---|
Language | Haskell2010 |
Web.OpenWeatherMap.Client
Description
High-level client functions perfoming requests to OpenWeatherMap API.
Synopsis
- getWeather :: String -> Location -> IO (Either ClientError CurrentWeather)
- getForecast :: String -> Location -> IO (Either ClientError ForecastWeather)
Documentation
Arguments
:: String | API key. |
-> Location | |
-> IO (Either ClientError CurrentWeather) |
Make a request to OpenWeatherMap API and return current weather in given location.
Arguments
:: String | API key. |
-> Location | |
-> IO (Either ClientError ForecastWeather) |
Make a request to OpenWeatherMap API and return forecast weather in given location.