mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-09-11 04:45:28 +03:00
Extract results printing to separate function
This commit is contained in:
parent
3f402120d9
commit
db10b79f93
@ -53,11 +53,13 @@ run options = withoutCursor $ do
|
||||
|
||||
resetScreen
|
||||
|
||||
either printParseError (printSearchResults . groupedResponses (oGrouping options)) $
|
||||
fmap (optionFilters options) response
|
||||
either printParseError (printResults options) response
|
||||
|
||||
return ()
|
||||
|
||||
printResults :: Options -> TermMatchSet -> IO ()
|
||||
printResults options = printSearchResults . groupedResponses (oGrouping options) . optionFilters options
|
||||
|
||||
loadLanguageConfig :: IO [LanguageConfiguration]
|
||||
loadLanguageConfig = either (const []) id <$> loadConfig
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user