hlint
This commit is contained in:
parent
f5b1c3841e
commit
72ec0ab736
12 changed files with 18 additions and 17 deletions
|
@ -111,7 +111,7 @@ roughSize units short i
|
|||
| i < 0 = '-' : findUnit units' (negate i)
|
||||
| otherwise = findUnit units' i
|
||||
where
|
||||
units' = reverse $ sort units -- largest first
|
||||
units' = sortBy (flip compare) units -- largest first
|
||||
|
||||
findUnit (u@(Unit s _ _):us) i'
|
||||
| i' >= s = showUnit i' u
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue