diff options
author | David Luposchainsky <dluposchainsky@gmail.com> | 2015-12-17 12:17:32 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-12-17 12:54:32 +0100 |
commit | 4f870f8481b2611619adf66d61eff06f02e3741f (patch) | |
tree | 9af21d344bb783b7eb69cb9e1ef4d0e400fd267f /testsuite/tests/parser | |
parent | e58a9361ac7e3699e298aa5c99398a21ac732500 (diff) | |
download | haskell-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/parser')
-rw-r--r-- | testsuite/tests/parser/should_compile/T2245.stderr | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/testsuite/tests/parser/should_compile/T2245.stderr b/testsuite/tests/parser/should_compile/T2245.stderr index 53b738832f..1f5f87f7c7 100644 --- a/testsuite/tests/parser/should_compile/T2245.stderr +++ b/testsuite/tests/parser/should_compile/T2245.stderr @@ -1,22 +1,22 @@ -T2245.hs:4:10: Warning: - No explicit implementation for - ‘+’, ‘*’, ‘abs’, ‘signum’, ‘fromInteger’, and (either ‘negate’ - or - ‘-’) - In the instance declaration for ‘Num T’ +T2245.hs:4:10: warning: + • No explicit implementation for + ‘+’, ‘*’, ‘abs’, ‘signum’, ‘fromInteger’, and (either ‘negate’ + or + ‘-’) + • In the instance declaration for ‘Num T’ -T2245.hs:5:10: Warning: - No explicit implementation for - ‘fromRational’ and (either ‘recip’ or ‘/’) - In the instance declaration for ‘Fractional T’ +T2245.hs:5:10: warning: + • No explicit implementation for + ‘fromRational’ and (either ‘recip’ or ‘/’) + • In the instance declaration for ‘Fractional T’ -T2245.hs:7:29: Warning: - Defaulting the following constraint(s) to type ‘T’ - (Fractional b0) - arising from the literal ‘1e400’ at T2245.hs:7:29-33 - (Ord b0) arising from a use of ‘<’ at T2245.hs:7:27 - (Read b0) arising from a use of ‘read’ at T2245.hs:7:38-41 - In the second argument of ‘(<)’, namely ‘1e400’ - In the first argument of ‘(.)’, namely ‘(< 1e400)’ - In the second argument of ‘(.)’, namely ‘(< 1e400) . read’ +T2245.hs:7:29: warning: + • Defaulting the following constraints to type ‘T’ + (Fractional b0) + arising from the literal ‘1e400’ at T2245.hs:7:29-33 + (Ord b0) arising from a use of ‘<’ at T2245.hs:7:27 + (Read b0) arising from a use of ‘read’ at T2245.hs:7:38-41 + • In the second argument of ‘(<)’, namely ‘1e400’ + In the first argument of ‘(.)’, namely ‘(< 1e400)’ + In the second argument of ‘(.)’, namely ‘(< 1e400) . read’ |