[Git][ghc/ghc][wip/cabal-verbosity] hadrian: Decrease verbosity of cabal commands

Matthew Pickering (@mpickering) gitlab at gitlab.haskell.org
Thu Oct 12 14:17:09 UTC 2023



Matthew Pickering pushed to branch wip/cabal-verbosity at Glasgow Haskell Compiler / GHC


Commits:
d81decca by Matthew Pickering at 2023-10-12T15:17:00+01:00
hadrian: Decrease verbosity of cabal commands

In Normal, most tools do not produce output to stdout unless there are
error conditions.

Reverts 7ed65f5a1bc8e040e318ccff395f53a9bbfd8217

- - - - -


1 changed file:

- hadrian/src/Hadrian/Haskell/Cabal/Parse.hs


Changes:

=====================================
hadrian/src/Hadrian/Haskell/Cabal/Parse.hs
=====================================
@@ -198,9 +198,10 @@ copyPackage context at Context {..} = do
 shakeVerbosityToCabalFlag :: Verbosity -> String
 shakeVerbosityToCabalFlag = \case
     Diagnostic -> "-v3"
-    Verbose -> "-v3"
+    Verbose -> "-v2"
+    -- Normal levels should not produce output to stdout
     Silent -> "-v0"
-    _ -> "-v2"
+    _ -> "-v1"
 
 -- | What type of file is Main
 data MainSourceType = HsMain | CppMain | CMain



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d81decca032c415c3b444c35f14e407d4edef66c

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d81decca032c415c3b444c35f14e407d4edef66c
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20231012/382be921/attachment-0001.html>


More information about the ghc-commits mailing list