summaryrefslogtreecommitdiff
path: root/testsuite/tests/typecheck/should_fail/tcfail204.stderr
diff options
context:
space:
mode:
authorDavid Luposchainsky <dluposchainsky@gmail.com>2015-12-17 12:17:32 +0100
committerBen Gamari <ben@smart-cactus.org>2015-12-17 12:54:32 +0100
commit4f870f8481b2611619adf66d61eff06f02e3741f (patch)
tree9af21d344bb783b7eb69cb9e1ef4d0e400fd267f /testsuite/tests/typecheck/should_fail/tcfail204.stderr
parente58a9361ac7e3699e298aa5c99398a21ac732500 (diff)
downloadhaskell-4f870f8481b2611619adf66d61eff06f02e3741f.tar.gz
Conditionally show plural "s" in warnings
Redundant constraints and defaulting warnings had "constraint(s)" in their messages; the "s" is now conditional based on the number of things warned about. Reviewers: hvr, austin, bgamari Reviewed By: bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1647
Diffstat (limited to 'testsuite/tests/typecheck/should_fail/tcfail204.stderr')
-rw-r--r--testsuite/tests/typecheck/should_fail/tcfail204.stderr20
1 files changed, 10 insertions, 10 deletions
diff --git a/testsuite/tests/typecheck/should_fail/tcfail204.stderr b/testsuite/tests/typecheck/should_fail/tcfail204.stderr
index e8ecfc0024..b6ef584387 100644
--- a/testsuite/tests/typecheck/should_fail/tcfail204.stderr
+++ b/testsuite/tests/typecheck/should_fail/tcfail204.stderr
@@ -1,13 +1,13 @@
-tcfail204.hs:10:15: Warning:
- Defaulting the following constraint(s) to type ‘Double’
- (Fractional a0)
- arising from the literal ‘6.3’ at tcfail204.hs:10:15-17
- (RealFrac a0)
- arising from a use of ‘ceiling’ at tcfail204.hs:10:7-13
- In the first argument of ‘ceiling’, namely ‘6.3’
- In the expression: ceiling 6.3
- In an equation for ‘foo’: foo = ceiling 6.3
+tcfail204.hs:10:15: warning:
+ • Defaulting the following constraints to type ‘Double’
+ (Fractional a0)
+ arising from the literal ‘6.3’ at tcfail204.hs:10:15-17
+ (RealFrac a0)
+ arising from a use of ‘ceiling’ at tcfail204.hs:10:7-13
+ • In the first argument of ‘ceiling’, namely ‘6.3’
+ In the expression: ceiling 6.3
+ In an equation for ‘foo’: foo = ceiling 6.3
-<no location info>:
+<no location info>: error:
Failing due to -Werror.