Introduce -Wcompat-unqualified-imports
This implements the warning proposed in option (B) of the Data.List.singleton CLC [discussion][]. This warning, which is included in `-Wcompat` is intended to help users identify imports of modules that will change incompatibly in future GHC releases. This currently only includes `Data.List` due to the expected specialisation and addition of `Data.List.singleton`. Bumps hpc submodule. Fixes #17244. [discussion]: https://groups.google.com/d/msg/haskell-core-libraries/q3zHLmzBa5E/PmlAs_kYAQAJ
Showing
- compiler/main/DynFlags.hs 4 additions, 1 deletioncompiler/main/DynFlags.hs
- compiler/prelude/PrelNames.hs 2 additions, 1 deletioncompiler/prelude/PrelNames.hs
- compiler/rename/RnNames.hs 37 additions, 0 deletionscompiler/rename/RnNames.hs
- docs/users_guide/using-warnings.rst 22 additions, 3 deletionsdocs/users_guide/using-warnings.rst
- testsuite/tests/rename/should_compile/T17244A.hs 9 additions, 0 deletionstestsuite/tests/rename/should_compile/T17244A.hs
- testsuite/tests/rename/should_compile/T17244A.stderr 5 additions, 0 deletionstestsuite/tests/rename/should_compile/T17244A.stderr
- testsuite/tests/rename/should_compile/T17244B.hs 10 additions, 0 deletionstestsuite/tests/rename/should_compile/T17244B.hs
- testsuite/tests/rename/should_compile/T17244B.stderr 0 additions, 0 deletionstestsuite/tests/rename/should_compile/T17244B.stderr
- testsuite/tests/rename/should_compile/T17244C.hs 10 additions, 0 deletionstestsuite/tests/rename/should_compile/T17244C.hs
- testsuite/tests/rename/should_compile/T17244C.stderr 0 additions, 0 deletionstestsuite/tests/rename/should_compile/T17244C.stderr
- testsuite/tests/rename/should_compile/all.T 3 additions, 0 deletionstestsuite/tests/rename/should_compile/all.T
Loading
Please register or sign in to comment