Admin message

Due to a large amount of spam we do not allow new users to create repositories, they are "external" users. If you are a new user and want to create a repository, for example for forking GHC, open a new issue on ghc/ghc using the "get-verified" issue template

Hiding by default source paths (`-fhide-source-paths`)
Raised by @hsyl20 in #25344, I would like to suggest that the behaviour enabled by `-fhide-source-paths` is made default for verbosity level 1 and below (instead of 0). ## Context Today, building a Haskell project by default gives the following output: ``` Building library for Cabal-syntax-3.15.0.0... [1 of 7] Compiling ANSI ( src/ANSI.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate-tmp/ANSI.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate-tmp/ANSI.dyn_o ) [2 of 7] Compiling ClockUtil ( src/ClockUtil.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate-tmp/ClockUtil.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate-tmp/ClockUtil.dyn_o ) [3 of 7] Compiling OutputUtil ( src/OutputUtil.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate-tmp/OutputUtil.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate-tmp/OutputUtil.dyn_o ) [4 of 7] Compiling Step ( src/Step.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate-tmp/Step.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate-tmp/Step.dyn_o ) [ 1 of 139] Compiling Distribution.Compat.Binary ( src/Distribution/Compat/Binary.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Compat/Binary.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Compat/Binary.dyn_o ) [ 2 of 139] Compiling Distribution.Compat.Exception ( src/Distribution/Compat/Exception.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Compat/Exception.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Compat/Exception.dyn_o ) [5 of 7] Compiling Cli ( src/Cli.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate-tmp/Cli.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate-tmp/Cli.dyn_o ) [ 3 of 139] Compiling Distribution.Compat.MonadFail ( src/Distribution/Compat/MonadFail.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Compat/MonadFail.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Compat/MonadFail.dyn_o ) [ 4 of 139] Compiling Distribution.Compat.Newtype ( src/Distribution/Compat/Newtype.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Compat/Newtype.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Compat/Newtype.dyn_o ) [ 5 of 139] Compiling Distribution.PackageDescription.Utils ( src/Distribution/PackageDescription/Utils.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/PackageDescription/Utils.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/PackageDescription/Utils.dyn_o ) [ 6 of 139] Compiling Distribution.Utils.Base62 ( src/Distribution/Utils/Base62.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Utils/Base62.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Utils/Base62.dyn_o ) [ 7 of 139] Compiling Distribution.Utils.MD5 ( src/Distribution/Utils/MD5.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Utils/MD5.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Utils/MD5.dyn_o ) [ 8 of 139] Compiling Distribution.Utils.String ( src/Distribution/Utils/String.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Utils/String.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Utils/String.dyn_o ) [ 9 of 139] Compiling Distribution.Utils.Structured ( src/Distribution/Utils/Structured.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Utils/Structured.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Utils/Structured.dyn_o ) [6 of 7] Compiling ProcessUtil ( src/ProcessUtil.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate-tmp/ProcessUtil.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate-tmp/ProcessUtil.dyn_o ) [7 of 7] Compiling Main ( src/Main.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate-tmp/Main.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate-tmp/Main.dyn_o ) [8 of 8] Linking /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate [ 10 of 139] Compiling Distribution.Compat.Semigroup ( src/Distribution/Compat/Semigroup.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Compat/Semigroup.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Compat/Semigroup.dyn_o ) [ 11 of 139] Compiling Distribution.Compat.NonEmptySet ( src/Distribution/Compat/NonEmptySet.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Compat/NonEmptySet.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Compat/NonEmptySet.dyn_o ) [ 12 of 139] Compiling Distribution.Compat.Prelude ( src/Distribution/Compat/Prelude.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Compat/Prelude.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Compat/Prelude.dyn_o ) [ 13 of 139] Compiling Distribution.Utils.ShortText ( src/Distribution/Utils/ShortText.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Utils/ShortText.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Utils/ShortText.dyn_o ) [ 14 of 139] Compiling Distribution.Utils.Generic ( src/Distribution/Utils/Generic.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Utils/Generic.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Utils/Generic.dyn_o ) [ 15 of 139] Compiling Distribution.Types.Condition ( src/Distribution/Types/Condition.hs, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Types/Condition.o, /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/Cabal-syntax-3.15.0.0/build/Distribution/Types/Condition.dyn_o ) ``` <details><summary>Bonus version</summary> ![Screenshot_20241005_215348](/uploads/841f825330dca16ac971b52aad61328c/Screenshot_20241005_215348.png) </details> ## Expected result I suggest that `ghc` instead displays ``` Building library for Cabal-syntax-3.15.0.0... [1 of 7] Compiling ANSI [2 of 7] Compiling ClockUtil [3 of 7] Compiling OutputUtil [4 of 7] Compiling Step [ 1 of 139] Compiling Distribution.Compat.Binary [ 2 of 139] Compiling Distribution.Compat.Exception [5 of 7] Compiling Cli [ 3 of 139] Compiling Distribution.Compat.MonadFail [ 4 of 139] Compiling Distribution.Compat.Newtype [ 5 of 139] Compiling Distribution.PackageDescription.Utils [ 6 of 139] Compiling Distribution.Utils.Base62 [ 7 of 139] Compiling Distribution.Utils.MD5 [ 8 of 139] Compiling Distribution.Utils.String [ 9 of 139] Compiling Distribution.Utils.Structured [6 of 7] Compiling ProcessUtil [7 of 7] Compiling Main [8 of 8] Linking /home/hecate/Contrib/cabal/dist-newstyle/build/x86_64-linux/ghc-9.6.6/cabal-validate-1.0.0/x/cabal-validate/build/cabal-validate/cabal-validate [ 10 of 139] Compiling Distribution.Compat.Semigroup [ 11 of 139] Compiling Distribution.Compat.NonEmptySet [ 12 of 139] Compiling Distribution.Compat.Prelude [ 13 of 139] Compiling Distribution.Utils.ShortText [ 14 of 139] Compiling Distribution.Utils.Generic [ 15 of 139] Compiling Distribution.Types.Condition ``` ## Motivation 1. Under normal operating circumstances, most of the current output is not useful. Since the tooling enforces a very strong proximity between file name and location in the file system, the location of a module can be easily inferred from its name. For instance, `Distribution.Compat.Semigroup` refers to the `Semigroup.hs` file, residing in `Distribution/Compat/`. 2. Newcomers who have not yet learned to shut this information from their optical nerves are therefore under the impression that they should pay attention to the fact that their file gets compiled to a `.o` and a `.dyn_o`. Such considerations are best left to users who wilfully enable higher verbosity, since they are actively trying to understand the behaviour of the compiler regarding the nature of the object files it produces (an activity that remains quite niche outside of the GHC development community). 3. By removing most of the noise, users can be concentrate of more useful information that may be displayed during the compilation process. This is not a blind adherence to the UNIX principle of not showing any output unless there is an error, but rather being selective in what output gets shown according to the operating mode of the end-user. It is safe to assume that users on the normal verbosity level do not wish to know more than is strictly necessary to know that compilation is indeed progressing, and that users who desire to know more will reach for the verbosity flag when invoking GHC. MR available at https://gitlab.haskell.org/ghc/ghc/-/merge_requests/13366
issue