summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorHerbert Valerio Riedel <hvr@gnu.org>2015-12-05 09:59:01 +0100
committerHerbert Valerio Riedel <hvr@gnu.org>2015-12-05 11:13:48 +0100
commit51d08d82b7681d23d89e6c240ec4dcfd8801edb1 (patch)
tree8e9fed223b01912ce8a385732c9fa62bdb5ea2e5 /mk
parenta14296c2660521db8ba965065687e45cee4e3401 (diff)
downloadhaskell-51d08d82b7681d23d89e6c240ec4dcfd8801edb1.tar.gz
Enable non-canonical Monad instance warnings for stage1/2
This makes use of the new facility introduced via 14d0f7f1221db758cd06a69f53803d9d0150164a which allows to have certain flags passed only to the non-bootstrapping GHC. This is needed because sometimes we can't assume the existence of a certain flag in the bootstrapping compiler which was only added recently to GHC HEAD. This also updates the haddock submodule to fix a few remaining noncanonical instance definitions. Differential Revision: https://phabricator.haskell.org/D1571
Diffstat (limited to 'mk')
-rw-r--r--mk/warnings.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/mk/warnings.mk b/mk/warnings.mk
index d604f9ae2d..f8db8fd35d 100644
--- a/mk/warnings.mk
+++ b/mk/warnings.mk
@@ -32,6 +32,8 @@ SRC_CC_WARNING_OPTS += -Wno-unknown-pragmas
endif
+SRC_HC_WARNING_OPTS_STAGE1 += -fwarn-noncanonical-monad-instances
+SRC_HC_WARNING_OPTS_STAGE2 += -fwarn-noncanonical-monad-instances
######################################################################