summaryrefslogtreecommitdiffhomepage
path: root/Plugins/Monitors/Weather.hs
diff options
context:
space:
mode:
authorKrzysztof Kosciuszkiewicz <k.kosciuszkiewicz@gmail.com>2007-07-12 03:36:26 +0200
committerKrzysztof Kosciuszkiewicz <k.kosciuszkiewicz@gmail.com>2007-07-12 03:36:26 +0200
commit2217463c0f52280835bf508dd5b768bff56f2b65 (patch)
treeaadf5f6247588d93e4a2f10fcedf2237e1014ecd /Plugins/Monitors/Weather.hs
parent57b8cee954996394d0ba7212819ffe592d2148b4 (diff)
downloadxmobar-2217463c0f52280835bf508dd5b768bff56f2b65.tar.gz
xmobar-2217463c0f52280835bf508dd5b768bff56f2b65.tar.bz2
Get rid of floats in scientific notation.
Use 'showDigits n' instead of 'show . takeDigits n'. As this example shows explicit precision specifications would be appreciated ;) darcs-hash:20070712013626-ba08c-868a9d53ab1b8bc120d7c1a9634d3d8c7cb599d7.gz
Diffstat (limited to 'Plugins/Monitors/Weather.hs')
-rw-r--r--Plugins/Monitors/Weather.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Plugins/Monitors/Weather.hs b/Plugins/Monitors/Weather.hs
index ec5606e..447ac2c 100644
--- a/Plugins/Monitors/Weather.hs
+++ b/Plugins/Monitors/Weather.hs
@@ -117,7 +117,7 @@ getData url=
formatWeather :: [WeatherInfo] -> Monitor String
formatWeather [(WI st ss y m d h w v sk temp dp r p)] =
do cel <- showWithColors show temp
- far <- showWithColors (show . takeDigits 1) (((9 / 5) * temp) + 32)
+ far <- showWithColors (showDigits 1) (((9 / 5) * temp) + 32)
rh <- showWithColors show r
parseTemplate [st, ss, y, m, d, h, w, v, sk, cel, far, dp, rh , p ]
formatWeather _ = return "N/A"