Skip to content

api for google weather implemented in haskell

License

Notifications You must be signed in to change notification settings

f-me/hs-weather-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 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

Languages

  • Haskell 100.0%