Commit 51d08d82 authored by Herbert Valerio Riedel's avatar Herbert Valerio Riedel 🕺

Enable non-canonical Monad instance warnings for stage1/2

This makes use of the new facility introduced via
14d0f7f1 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
parent a14296c2
...@@ -32,6 +32,8 @@ SRC_CC_WARNING_OPTS += -Wno-unknown-pragmas ...@@ -32,6 +32,8 @@ SRC_CC_WARNING_OPTS += -Wno-unknown-pragmas
endif endif
SRC_HC_WARNING_OPTS_STAGE1 += -fwarn-noncanonical-monad-instances
SRC_HC_WARNING_OPTS_STAGE2 += -fwarn-noncanonical-monad-instances
###################################################################### ######################################################################
......
Subproject commit 42b2cfc595f1ee62d1c1b8513c5df1d92709c06a Subproject commit a6deefad581cbeb62048826bc1d626c41a0dd56c
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment