]> gitweb @ CieloNegro.org - Rakka.git/blobdiff - Rakka/W3CDateTime.hs
Applied HLint
[Rakka.git] / Rakka / W3CDateTime.hs
index 85af47a8e7f54feba299eef30d3dd5015ed6a9dd..595d228aee22db29c63951c95af21bf91113145e 100644 (file)
@@ -23,13 +23,13 @@ formatW3CDateTime zonedTime
                 timeOfDay          = localTimeOfDay localTime
                 (secInt, secFrac)  = properFraction (todSec timeOfDay)
             in
-              (printf "%04d-%02d-%02dT%02d:%02d:%02d"
-                      year
-                      month
-                      day
-                      (todHour timeOfDay)
-                      (todMin timeOfDay)
-                      (secInt :: Int))
+              printf "%04d-%02d-%02dT%02d:%02d:%02d"
+                     year
+                     month
+                     day
+                     (todHour timeOfDay)
+                     (todMin timeOfDay)
+                     (secInt :: Int))
               ++
               (if secFrac == 0
                then ""
@@ -38,9 +38,9 @@ formatW3CDateTime zonedTime
       formatTimeZone :: TimeZone -> String
       formatTimeZone tz
           = case timeZoneMinutes tz of
-              offset | offset <  0 -> '-':(showTZ $ negate offset)
+              offset | offset <  0 -> '-' : (showTZ $ negate offset)
                      | offset == 0 -> "Z"
-                     | otherwise   -> '+':(showTZ offset)
+                     | otherwise   -> '+' : showTZ offset
       
       showTZ :: Int -> String   
       showTZ offset
@@ -50,7 +50,7 @@ formatW3CDateTime zonedTime
               show2 hour ++ ":" ++ show2 minute
             
       show2 :: Int -> String
-      show2 n | n < 10    = '0':(show n)
+      show2 n | n < 10    = '0' : show n
               | otherwise = show n