Remove ScopedTypeVariables => TypeAbstractions
This commit implements [amendment 604](https://github.com/ghc-proposals/ghc-proposals/pull/604/) to [GHC proposal 448](https://github.com/ghc-proposals/ghc-proposals/pull/448) by removing the implication of language extensions ScopedTypeVariables => TypeAbstractions To limit breakage, we now allow type arguments in constructor patterns when both ScopedTypeVariables and TypeApplications are enabled, but we emit a warning notifying the user that this is deprecated behaviour that will go away starting in GHC 9.12. Fixes #23776
Showing
- compiler/GHC/Driver/DynFlags.hs 0 additions, 1 deletioncompiler/GHC/Driver/DynFlags.hs
- compiler/GHC/Driver/Session.hs 0 additions, 3 deletionscompiler/GHC/Driver/Session.hs
- compiler/GHC/Rename/HsType.hs 1 addition, 0 deletionscompiler/GHC/Rename/HsType.hs
- compiler/GHC/Rename/Pat.hs 21 additions, 3 deletionscompiler/GHC/Rename/Pat.hs
- compiler/GHC/Tc/Errors/Ppr.hs 9 additions, 0 deletionscompiler/GHC/Tc/Errors/Ppr.hs
- compiler/GHC/Tc/Errors/Types.hs 9 additions, 0 deletionscompiler/GHC/Tc/Errors/Types.hs
- compiler/GHC/Types/Error/Codes.hs 1 addition, 0 deletionscompiler/GHC/Types/Error/Codes.hs
- testsuite/tests/typecheck/should_fail/T23776.hs 9 additions, 0 deletionstestsuite/tests/typecheck/should_fail/T23776.hs
- testsuite/tests/typecheck/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/typecheck/should_fail/all.T
Loading
Please register or sign in to comment