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

Report all missing modules at once with -M
## Summary When using `ghc -M`, if a module has multiple imports which could not be found, ghc only reports one at a time. It would be nice to report them all together. This is the same as https://gitlab.haskell.org/ghc/ghc/-/issues/8692, except that it concerns `-M` specifically. ## Steps to reproduce Create a file `Main.hs` with contents: ``` module Main where import Foo import Bar import Baz ``` and then run `ghc -M Main.hs`. ## Expected behavior I expected to see an error with identical output to what happens when I run `ghc Main.hs`, that is: ``` $ ghc Main.hs [1 of 2] Compiling Main ( Main.hs, Main.o ) Main.hs:2:1: error: Could not find module ‘Foo’ Use -v (or `:set -v` in ghci) to see a list of the files searched for. | 2 | import Foo | ^^^^^^^^^^ Main.hs:3:1: error: Could not find module ‘Bar’ Use -v (or `:set -v` in ghci) to see a list of the files searched for. | 3 | import Bar | ^^^^^^^^^^ Main.hs:4:1: error: Could not find module ‘Baz’ Use -v (or `:set -v` in ghci) to see a list of the files searched for. | 4 | import Baz | ^^^^^^^^^^ ``` but instead I only get the last one: ``` $ ghc -M Main.hs Main.hs:4:8: error: Could not find module ‘Baz’ Use -v (or `:set -v` in ghci) to see a list of the files searched for. | 4 | import Baz | ^^^ ``` ## Environment * GHC version used: 9.12.2
issue