aboutsummaryrefslogtreecommitdiff
path: root/Utility/Scheduled.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-09-13 13:39:48 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-09-13 13:39:48 -0400
commit6b209cd8578a4509e67dc187271f5f3a193acd97 (patch)
tree353b62e3fbe1e212e0af377722c3c3980a188826 /Utility/Scheduled.hs
parent1e9b95d13b4bd3461add92096fc142ef5126eab9 (diff)
merge hlint changes from propellor
Diffstat (limited to 'Utility/Scheduled.hs')
-rw-r--r--Utility/Scheduled.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utility/Scheduled.hs b/Utility/Scheduled.hs
index b3813323d..5e813d4a2 100644
--- a/Utility/Scheduled.hs
+++ b/Utility/Scheduled.hs
@@ -286,7 +286,7 @@ fromScheduledTime AnyTime = "any time"
fromScheduledTime (SpecificTime h m) =
show h' ++ (if m > 0 then ":" ++ pad 2 (show m) else "") ++ " " ++ ampm
where
- pad n s = take (n - length s) (repeat '0') ++ s
+ pad n s = replicate (n - length s) '0' ++ s
(h', ampm)
| h == 0 = (12, "AM")
| h < 12 = (h, "AM")