You need to sign in or sign up before continuing.
Guard CUSKs behind a language pragma
GHC Proposal #36 describes a transition plan away from CUSKs and to top-level kind signatures: 1. Introduce a new extension, -XCUSKs, on by default, that detects CUSKs as they currently exist. 2. We turn off the -XCUSKs extension in a few releases and remove it sometime thereafter. This patch implements phase 1 of this plan, introducing a new language extension to control whether CUSKs are enabled. When top-level kind signatures are implemented, we can transition to phase 2.
Showing
- compiler/hsSyn/HsDecls.hs 20 additions, 10 deletionscompiler/hsSyn/HsDecls.hs
- compiler/main/DynFlags.hs 3 additions, 0 deletionscompiler/main/DynFlags.hs
- compiler/rename/RnSource.hs 2 additions, 1 deletioncompiler/rename/RnSource.hs
- compiler/typecheck/TcTyClsDecls.hs 29 additions, 18 deletionscompiler/typecheck/TcTyClsDecls.hs
- docs/users_guide/glasgow_exts.rst 12 additions, 0 deletionsdocs/users_guide/glasgow_exts.rst
- libraries/ghc-boot-th/GHC/LanguageExtensions/Type.hs 1 addition, 0 deletionslibraries/ghc-boot-th/GHC/LanguageExtensions/Type.hs
- testsuite/tests/driver/T4437.hs 1 addition, 0 deletionstestsuite/tests/driver/T4437.hs
- testsuite/tests/typecheck/should_fail/all.T 1 addition, 0 deletionstestsuite/tests/typecheck/should_fail/all.T
- testsuite/tests/typecheck/should_fail/tcfail225.hs 9 additions, 0 deletionstestsuite/tests/typecheck/should_fail/tcfail225.hs
- testsuite/tests/typecheck/should_fail/tcfail225.stderr 6 additions, 0 deletionstestsuite/tests/typecheck/should_fail/tcfail225.stderr
Loading
Please register or sign in to comment