| CARVIEW |
Select Language
HTTP/1.1 200 OK
Connection: keep-alive
Server: nginx/1.24.0 (Ubuntu)
Content-Type: text/html; charset=utf-8
Cache-Control: public, max-age=300
Content-Encoding: gzip
Via: 1.1 varnish, 1.1 varnish
Accept-Ranges: bytes
Age: 0
Date: Sat, 17 Jan 2026 01:11:07 GMT
X-Served-By: cache-dfw-kdfw8210160-DFW, cache-bom-vanm7210061-BOM
X-Cache: MISS, MISS
X-Cache-Hits: 0, 0
X-Timer: S1768612267.110007,VS0,VE383
Vary: Accept, Accept-Encoding
transfer-encoding: chunked
Weather: Library for interacting with the Weather Underground JSON API.
[Skip to Readme]
Weather: Library for interacting with the Weather Underground JSON API.
Weather is a simple library for interacting with the Weather Underground JSON API. It is not complete, but it may be useful still.
[Skip to Readme]
Downloads
- Weather-0.1.0.4.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
| Versions [RSS] | 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4 |
|---|---|
| Dependencies | aeson (>=0.8.0), base (>=4 && <5), bytestring (>=0.10.4), HTTP (>=4000.2.12), text (>=1.1.0), unordered-containers (>=0.2.5) [details] |
| License | BSD-3-Clause |
| Author | Bryan St. Amour |
| Maintainer | bryan@bryanstamour.com |
| Uploaded | by bstamour at 2015-04-16T15:32:44Z |
| Category | Net |
| Home page | https://github.com/bstamour/weather |
| Distributions | |
| Reverse Dependencies | 1 direct, 0 indirect [details] |
| Downloads | 3813 total (15 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating |
|
| Status | Docs uploaded by user Build status unknown [no reports yet] |
Readme for Weather-0.1.0.4
[back to package description]weather
Haskell library for working with the Weather Underground JSON API.
Currently only supports querying for conditions for US-based cities.
Example usage:
{-# LANGUAGE RecordWildCards #-}
module Main where
import Web.Weather
mykey :: APIKey
mykey = "top-secret"
mycity, mystate :: String
mycity = "Detroit"
mystate = "MI"
main :: IO ()
main = do
resp <- getConditions mykey mycity mystate
case resp of
Nothing -> putStrLn "No data for that city/state"
Just (Observation{..}) -> do
putStrLn $ "Observation time: " ++ obsTime
putStrLn $ "Weather conditions: " ++ obsWeather
putStrLn $ "Temp: " ++ show obsTemp
putStrLn $ "Rel humidity: " ++ show obsRelHumidity
putStrLn $ "Wind: " ++ obsWind
putStrLn $ "Feels like: " ++ obsFeelsLike
Output:
Observation time: Last Updated on April 10, 2:09 PM EDT
Weather conditions: Partly Cloudy
Temp: 52.9
Rel humidity: "60%"
Wind: From the West at 4.7 MPH
Feels like: 52.9 F (11.6 C)