Skip to content

Commit

Permalink
#137, make the status message clearer about what worked and what didn…
Browse files Browse the repository at this point in the history
…'t (#138)
  • Loading branch information
ndmitchell authored and aherrmann-da committed Sep 27, 2019
1 parent 83978c3 commit 9d45eee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions exe/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ main = do
setFilesOfInterest ide $ Set.fromList $ map toNormalizedFilePath files
results <- runActionSync ide $ uses TypeCheck $ map toNormalizedFilePath files
let (worked, failed) = partition fst $ zip (map isJust results) files
putStrLn $ "Files that worked: " ++ show (length worked)
putStrLn $ "Files that failed: " ++ show (length failed)
putStr $ unlines $ map ((++) " * " . snd) failed
when (failed /= []) $
putStr $ unlines $ "Files that failed:" : map ((++) " * " . snd) failed

putStrLn "Done"
let files xs = let n = length xs in if n == 1 then "1 file" else show n ++ " files"
putStrLn $ "\nCompleted (" ++ files worked ++ " worked, " ++ files failed ++ " failed)"


expandFiles :: [FilePath] -> IO [FilePath]
Expand Down

0 comments on commit 9d45eee

Please sign in to comment.