hlint
This commit is contained in:
parent
f5b1c3841e
commit
72ec0ab736
12 changed files with 18 additions and 17 deletions
|
@ -59,7 +59,7 @@ parseDuration = Duration <$$> go 0
|
|||
fromDuration :: Duration -> String
|
||||
fromDuration Duration { durationSeconds = d }
|
||||
| d == 0 = "0s"
|
||||
| otherwise = concat $ map showunit $ go [] units d
|
||||
| otherwise = concatMap showunit $ go [] units d
|
||||
where
|
||||
showunit (u, n)
|
||||
| n > 0 = show n ++ [u]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue