Slightly less wordy progress report

This commit is contained in:
Chris Done 2015-02-18 22:38:45 +01:00
parent b2b5758ff0
commit 72a7ecc252

View File

@ -512,11 +512,12 @@ cabal env prefix logfile cwd args = do
(\ClosedStream UseProvidedHandle UseProvidedHandle -> (\ClosedStream UseProvidedHandle UseProvidedHandle ->
(return ())) (return ()))
return ExitSuccess return ExitSuccess
logLn env Normal case code of
(prefix <> T.pack (fromMaybe "" (listToMaybe args)) <> ": " <> ExitFailure{} ->
case code of logLn env Normal
ExitFailure{} -> "FAIL" (prefix <> T.pack (fromMaybe "" (listToMaybe args)) <> ": " <>
ExitSuccess{} -> "OK") "FAIL")
ExitSuccess{} -> return ()
return code return code
where cmd' = "cabal" :: String where cmd' = "cabal" :: String
exitFailing :: ProcessExitedUnsuccessfully -> IO ExitCode exitFailing :: ProcessExitedUnsuccessfully -> IO ExitCode