From d9c5d32c34885cac67c44c633c5351461902d166 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 25 Sep 2013 03:09:06 -0400 Subject: hlint test suite still passes --- Config/Cost.hs | 2 +- Config/Files.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Config') diff --git a/Config/Cost.hs b/Config/Cost.hs index dc391a5a5..2d94a6b15 100644 --- a/Config/Cost.hs +++ b/Config/Cost.hs @@ -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 diff --git a/Config/Files.hs b/Config/Files.hs index 3db2bb74c..30ed0a3cf 100644 --- a/Config/Files.hs +++ b/Config/Files.hs @@ -34,7 +34,7 @@ modifyAutoStartFile func = do when (dirs' /= dirs) $ do f <- autoStartFile createDirectoryIfMissing True (parentDir f) - viaTmp writeFile f $ unlines $ dirs' + viaTmp writeFile f $ unlines dirs' {- Adds a directory to the autostart file. If the directory is already - present, it's moved to the top, so it will be used as the default -- cgit v1.2.3