Skip to content

cvb/hs-weather-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage example with google api

required imports

import WeatherApi
import WeatherApi.Google

With handler in case server will alow you to make few requests with one connection

> let h = mkWeatherHandler $ initApi "key"
> getWeather h "moscow"
Right (Weather {tempF = 75.0, tempC = 24.0, humidity = "Humidity: 25%", windCondition = "Wind: S at 16 mph", condition = "Clear"})

Simple case

> getWeather' (initApi "key") "moscow"
Right (Weather {tempF = 75.0, tempC = 24.0, humidity = "Humidity: 25%", windCondition = "Wind: S at 16 mph", condition = "Clear"})

About

api for google weather implemented in haskell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published