hlint
test suite still passes
This commit is contained in:
parent
3192b059b5
commit
b405295aee
30 changed files with 72 additions and 75 deletions
|
@ -65,7 +65,7 @@ costBetween x y
|
|||
| x == y = x
|
||||
| x > y = -- avoid fractions unless needed
|
||||
let mid = y + (x - y) / 2
|
||||
mid' = fromIntegral ((floor mid) :: Int)
|
||||
mid' = fromIntegral (floor mid :: Int)
|
||||
in if mid' > y then mid' else mid
|
||||
| otherwise = costBetween y x
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue