Safe Haskell | None |
---|---|
Language | Haskell2010 |
High-level client functions perfoming requests to OpenWeatherMap API.
Synopsis
- data Location
- getWeather :: String -> Location -> IO (Either ClientError CurrentWeather)
Documentation
Various way to specify location.
:: String | API key. |
-> Location | |
-> IO (Either ClientError CurrentWeather) |
Make a request to OpenWeatherMap API and return current weather in given location.