openweathermap-0.1.0: Access data at OpenWeatherMap

Safe HaskellNone
LanguageHaskell2010

Web.OpenWeatherMap.Client

Description

High-level client functions perfoming requests to OpenWeatherMap API.

Synopsis

Documentation

data Location Source #

Various way to specify location.

Constructors

Name String

City name.

Coord Double Double

Geographic coordinates: latitude and longitude.

getWeather Source #

Arguments

:: String

API key.

-> Location 
-> IO (Either ClientError CurrentWeather) 

Make a request to OpenWeatherMap API and return current weather in given location.