Implement new -XTemplateHaskellQuotes pragma
Since f16ddcee / D876, `ghc-stage1` supports a subset of `-XTemplateHaskell`, but since we need Cabal to be able detect (so `.cabal` files can be specified accordingly, see also GHC #11102 which omits `TemplateHaskell` from `--supported-extensions`) whether GHC provides full or only partial `-XTemplateHaskell` support, the proper way to accomplish this is to split off the quotation/non-splicing `TemplateHaskell` feature-subset into a new language pragma `TemplateHaskellQuotes`. Moreover, `-XTemplateHaskellQuotes` is considered safe under SafeHaskell This addresses #11121 Reviewers: goldfire, ezyang, dterei, austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1511 GHC Trac Issues: #11121
Showing
- compiler/main/DynFlags.hs 24 additions, 4 deletionscompiler/main/DynFlags.hs
- compiler/parser/Lexer.x 13 additions, 9 deletionscompiler/parser/Lexer.x
- compiler/rename/RnSplice.hs 5 additions, 4 deletionscompiler/rename/RnSplice.hs
- docs/users_guide/7.12.1-notes.rst 5 additions, 5 deletionsdocs/users_guide/7.12.1-notes.rst
- docs/users_guide/glasgow_exts.rst 9 additions, 4 deletionsdocs/users_guide/glasgow_exts.rst
- testsuite/tests/driver/T4437.hs 1 addition, 0 deletionstestsuite/tests/driver/T4437.hs
- testsuite/tests/quotes/T10384.hs 1 addition, 1 deletiontestsuite/tests/quotes/T10384.hs
- testsuite/tests/quotes/all.T 1 addition, 1 deletiontestsuite/tests/quotes/all.T
- testsuite/tests/safeHaskell/safeLanguage/SafeLang12.stderr 5 additions, 6 deletionstestsuite/tests/safeHaskell/safeLanguage/SafeLang12.stderr
- utils/mkUserGuidePart/Options/Language.hs 7 additions, 0 deletionsutils/mkUserGuidePart/Options/Language.hs
Loading
Please register or sign in to comment