diff options
author | Edward Z. Yang <ezyang@cs.stanford.edu> | 2015-05-04 16:10:05 -0700 |
---|---|---|
committer | Edward Z. Yang <ezyang@cs.stanford.edu> | 2015-05-09 00:39:31 -0700 |
commit | 28257cae77023f2ccc4cc1c0cd1fbbd329947a00 (patch) | |
tree | b33cb09a17cd5fd476e0123740a0aeee200a5fbb /mk/warnings.mk | |
parent | 2601a436b3a52f52cec08599041b665b9887baa2 (diff) | |
download | haskell-28257cae77023f2ccc4cc1c0cd1fbbd329947a00.tar.gz |
Support stage 1 Template Haskell (non-quasi) quotes, fixes #10382.
Summary:
This commit adds stage 1 support for Template Haskell
quoting, e.g. [| ... expr ... |], which is useful
for authors of quasiquoter libraries that do not actually
need splices. The TemplateHaskell extension now does not
unconditionally fail; it only fails if the renamer encounters
a splice that it can't run.
In order to make sure the referenced data structures
are consistent, template-haskell is now a boot library.
In the following patches, there are:
- A few extra safety checks which should be enabled
in stage1
- Separation of the th/ testsuite into quotes/ which
can be run on stage1
Note for reviewer: big diff changes are simply code
being moved out of an ifdef; there was no other substantive
change to that code.
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Test Plan: validate
Reviewers: simonpj, austin, goldfire
Subscribers: bgamari, thomie
Differential Revision: https://phabricator.haskell.org/D876
GHC Trac Issues: #10382
Diffstat (limited to 'mk/warnings.mk')
-rw-r--r-- | mk/warnings.mk | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mk/warnings.mk b/mk/warnings.mk index 30e13ba6b8..5c41d5f9f4 100644 --- a/mk/warnings.mk +++ b/mk/warnings.mk @@ -102,6 +102,7 @@ libraries/ghc-prim_dist-install_EXTRA_HC_OPTS += -fno-warn-trustworthy-safe libraries/Win32_dist-install_EXTRA_HC_OPTS += -fno-warn-trustworthy-safe # Temporarely disable inline rule shadowing warning +libraries/template-haskell_dist-boot_EXTRA_HC_OPTS += -fno-warn-inline-rule-shadowing libraries/template-haskell_dist-install_EXTRA_HC_OPTS += -fno-warn-inline-rule-shadowing # We need -fno-warn-deprecated-flags to avoid failure with -Werror |