diff options
author | 2011-09-01 13:35:07 -0400 | |
---|---|---|
committer | 2011-09-01 13:35:07 -0400 | |
commit | 57dd34c6be5dbc01286108fd943ff9e02956e8aa (patch) | |
tree | 7071f2ded704a447fb2918ff3e0ca4d84bac03cc /Messages.hs | |
parent | 55783d886d3300555d4b68ff7323e2365928e059 (diff) |
generalize quiet flag to output type
This will allow adding other styles of output.
Diffstat (limited to 'Messages.hs')
-rw-r--r-- | Messages.hs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Messages.hs b/Messages.hs index 36f0b89c5..b2c871ede 100644 --- a/Messages.hs +++ b/Messages.hs @@ -9,7 +9,6 @@ module Messages where import Control.Monad.State (liftIO) import System.IO -import Control.Monad (unless) import Data.String.Utils import Types @@ -17,8 +16,10 @@ import qualified Annex verbose :: Annex () -> Annex () verbose a = do - q <- Annex.getState Annex.quiet - unless q a + output <- Annex.getState Annex.output + case output of + Annex.NormalOutput -> a + _ -> return () showStart :: String -> String -> Annex () showStart command file = verbose $ liftIO $ do |