summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorBen Gamari <bgamari.foss@gmail.com>2015-11-18 12:19:01 +0100
committerBen Gamari <ben@smart-cactus.org>2015-11-18 12:53:42 +0100
commitf405e1e75cd845c436e51c934958560c0e401248 (patch)
tree09f0d76706ca271f02b0701305f35c45cdb8aa9c /utils
parent11e336e4a4f7a0c0319d9bfb1a6931a5861299cf (diff)
downloadhaskell-f405e1e75cd845c436e51c934958560c0e401248.tar.gz
Disable failed specialisation warnings by default & update documentation.
These were far too noisy to enable by default. In the future we will hopefully have a more variant of -Wall targetted at these sorts of diagnostics. In the interim I've pointed out the existence of these options in the release notes in hopes that people will discover them. Test Plan: Validate Reviewers: hvr, austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1492
Diffstat (limited to 'utils')
-rw-r--r--utils/mkUserGuidePart/Options/Warnings.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/mkUserGuidePart/Options/Warnings.hs b/utils/mkUserGuidePart/Options/Warnings.hs
index 688a7e691b..593a20cf7e 100644
--- a/utils/mkUserGuidePart/Options/Warnings.hs
+++ b/utils/mkUserGuidePart/Options/Warnings.hs
@@ -145,6 +145,18 @@ warningsOptions =
, flagType = DynamicFlag
, flagReverse = "-fno-warn-missing-local-sigs"
}
+ , flag { flagName = "-fwarn-missed-specialisations"
+ , flagDescription =
+ "warn when specialisation of an imported, overloaded function fails."
+ , flagType = DynamicFlag
+ , flagReverse = "-fno-warn-missed-specialisations"
+ }
+ , flag { flagName = "-fwarn-all-missed-specialisations"
+ , flagDescription =
+ "warn when specialisation of any overloaded function fails."
+ , flagType = DynamicFlag
+ , flagReverse = "-fno-warn-all-missed-specialisations"
+ }
, flag { flagName = "-fwarn-monomorphism-restriction"
, flagDescription = "warn when the Monomorphism Restriction is applied"
, flagType = DynamicFlag