Pull whitespace handling to each searcher

This commit is contained in:
Joshua Clayton 2016-05-06 16:10:35 -04:00
parent e895420eb5
commit 3a63276834
2 changed files with 2 additions and 1 deletions

View File

@ -27,7 +27,7 @@ printAnalysisHeader terms = do
setSGR [SetColor Foreground Dull Green]
putStr $ show $ length terms
setSGR [Reset]
putStr " terms\n\n"
putStr " terms"
runSearch :: SearchRunner -> ([String] -> IO [String])
runSearch SearchWithProgress = searchWithProgressBar

View File

@ -8,6 +8,7 @@ import Unused.TermSearch (search)
searchWithProgressBar :: [String] -> IO [String]
searchWithProgressBar terms = do
putStr "\n\n"
(bar, tid) <- buildProgressBar $ toInteger $ length terms
concat <$> mapM (performSearch bar) terms <* killThread tid