merge hlint changes from propellor
This commit is contained in:
parent
6ce5fea50c
commit
2d2e94798f
4 changed files with 8 additions and 12 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue