[commit: testsuite] master: Improved error messages (bbdee55)

git at git.haskell.org git at git.haskell.org
Fri Nov 22 15:51:07 UTC 2013


Repository : ssh://git@git.haskell.org/testsuite

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/bbdee5556b096db4caf2d24201a7aac1118eedcf/testsuite

>---------------------------------------------------------------

commit bbdee5556b096db4caf2d24201a7aac1118eedcf
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Fri Nov 22 15:29:29 2013 +0000

    Improved error messages


>---------------------------------------------------------------

bbdee5556b096db4caf2d24201a7aac1118eedcf
 tests/numeric/should_compile/T7895.stderr |    6 ++++--
 tests/numeric/should_compile/T8542.stderr |    8 ++++----
 2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/tests/numeric/should_compile/T7895.stderr b/tests/numeric/should_compile/T7895.stderr
index b72faea..a4438ef 100644
--- a/tests/numeric/should_compile/T7895.stderr
+++ b/tests/numeric/should_compile/T7895.stderr
@@ -1,4 +1,6 @@
 
-T7895.hs:10:6: Warning: Literal 300 of type Word8 overflows
+T7895.hs:10:6: Warning:
+    Literal 300 is out of the Word8 range 0..255
 
-T7895.hs:13:6: Warning: Literal -129 of type Int8 overflows
+T7895.hs:13:6: Warning:
+    Literal -129 is out of the Int8 range -128..127
diff --git a/tests/numeric/should_compile/T8542.stderr b/tests/numeric/should_compile/T8542.stderr
index 9037797..b86ccad 100644
--- a/tests/numeric/should_compile/T8542.stderr
+++ b/tests/numeric/should_compile/T8542.stderr
@@ -1,8 +1,8 @@
 
 T8542.hs:6:6: Warning:
-    Literal 128 of type Int8 overflows
-    If you are attempting to write a negative literal, use NegativeLiterals
+    Literal 128 is out of the Int8 range -128..127
+    If you are trying to write a large negative literal, use NegativeLiterals
 
 T8542.hs:9:5: Warning:
-    Literal 128 of type Int8 overflows
-    If you are attempting to write a negative literal, use NegativeLiterals
+    Literal 128 is out of the Int8 range -128..127
+    If you are trying to write a large negative literal, use NegativeLiterals



More information about the ghc-commits mailing list