Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
:: String | API key. |
-> Location | |
-> IO (Either ClientError CurrentWeather) |
Make a request to OpenWeatherMap API and return current weather in given location.
:: String | API key. |
-> Location | |
-> IO (Either ClientError ForecastWeather) |
Make a request to OpenWeatherMap API and return forecast weather in given location.