summaryrefslogtreecommitdiff
path: root/ghc/tests
diff options
context:
space:
mode:
authorsimonmar <unknown>2001-08-08 14:25:15 +0000
committersimonmar <unknown>2001-08-08 14:25:15 +0000
commit598b2974f90c68a658509c3cd04c08470d88b7e6 (patch)
treeca34936b0777a41dcb0f8adcd0eb955b3ce6c58b /ghc/tests
parent79374b5bf9474fb7fc9db7fee3fccf719ca59391 (diff)
downloadhaskell-598b2974f90c68a658509c3cd04c08470d88b7e6.tar.gz
[project @ 2001-08-08 14:23:09 by simonmar]
update expected output
Diffstat (limited to 'ghc/tests')
-rw-r--r--ghc/tests/reader/should_compile/read014.stderr10
-rw-r--r--ghc/tests/reader/should_fail/read003.stderr2
-rw-r--r--ghc/tests/reader/should_fail/read007.stderr6
-rw-r--r--ghc/tests/rename/should_fail/rnfail001.stderr2
-rw-r--r--ghc/tests/rename/should_fail/rnfail004.stderr4
-rw-r--r--ghc/tests/rename/should_fail/rnfail014.stderr20
-rw-r--r--ghc/tests/rename/should_fail/rnfail019.stderr2
-rw-r--r--ghc/tests/rename/should_fail/rnfail020.stderr7
8 files changed, 22 insertions, 31 deletions
diff --git a/ghc/tests/reader/should_compile/read014.stderr b/ghc/tests/reader/should_compile/read014.stderr
index 302d50589a..9430e68983 100644
--- a/ghc/tests/reader/should_compile/read014.stderr
+++ b/ghc/tests/reader/should_compile/read014.stderr
@@ -7,20 +7,20 @@ read014.hs:8: Warning: Defined but not used: x
read014.hs:6:
Warning: No explicit method nor default method for `*'
- in an instance declaration for `Num'
+ In the instance declaration for `Num (a, b)'
read014.hs:6:
Warning: No explicit method nor default method for `+'
- in an instance declaration for `Num'
+ In the instance declaration for `Num (a, b)'
read014.hs:6:
Warning: No explicit method nor default method for `signum'
- in an instance declaration for `Num'
+ In the instance declaration for `Num (a, b)'
read014.hs:6:
Warning: No explicit method nor default method for `abs'
- in an instance declaration for `Num'
+ In the instance declaration for `Num (a, b)'
read014.hs:6:
Warning: No explicit method nor default method for `fromInteger'
- in an instance declaration for `Num'
+ In the instance declaration for `Num (a, b)'
diff --git a/ghc/tests/reader/should_fail/read003.stderr b/ghc/tests/reader/should_fail/read003.stderr
index 2b3f3bdbf0..13f34c5e71 100644
--- a/ghc/tests/reader/should_fail/read003.stderr
+++ b/ghc/tests/reader/should_fail/read003.stderr
@@ -3,4 +3,4 @@ read003.hs:4:
Occurs check: cannot construct the infinite type: t = (t, [a], t1)
Expected type: (t, [a], t1)
Inferred type: t
- in a pattern binding: a
+ In a pattern binding: a
diff --git a/ghc/tests/reader/should_fail/read007.stderr b/ghc/tests/reader/should_fail/read007.stderr
index f78aa2a340..72470b1d48 100644
--- a/ghc/tests/reader/should_fail/read007.stderr
+++ b/ghc/tests/reader/should_fail/read007.stderr
@@ -2,4 +2,8 @@
read007.hs:6:
`+' is not a data constructor
In the pattern: 2 + 2
- in a `do' expression pattern binding: (2 + 2) <- 2
+ In a 'do' expression pattern binding: (2 + 2) <- 2
+ In the definition of `f':
+ do
+ (2 + 2) <- 2
+ return x
diff --git a/ghc/tests/rename/should_fail/rnfail001.stderr b/ghc/tests/rename/should_fail/rnfail001.stderr
index 193391fdd3..c6406245a0 100644
--- a/ghc/tests/rename/should_fail/rnfail001.stderr
+++ b/ghc/tests/rename/should_fail/rnfail001.stderr
@@ -1,4 +1,4 @@
rnfail001.hs:3:
Conflicting definitions for `x'
- in a pattern match
+ In the definition of `f'
diff --git a/ghc/tests/rename/should_fail/rnfail004.stderr b/ghc/tests/rename/should_fail/rnfail004.stderr
index d4d3a9ab9d..73100a74c9 100644
--- a/ghc/tests/rename/should_fail/rnfail004.stderr
+++ b/ghc/tests/rename/should_fail/rnfail004.stderr
@@ -1,8 +1,8 @@
rnfail004.hs:7:
Conflicting definitions for `a'
- in a binding group
+ In a binding group
rnfail004.hs:8:
Conflicting definitions for `b'
- in a binding group
+ In a binding group
diff --git a/ghc/tests/rename/should_fail/rnfail014.stderr b/ghc/tests/rename/should_fail/rnfail014.stderr
index efa87aeaf0..2c87641ec2 100644
--- a/ghc/tests/rename/should_fail/rnfail014.stderr
+++ b/ghc/tests/rename/should_fail/rnfail014.stderr
@@ -1,20 +1,6 @@
-rnfail014.hs:8:
- Ambiguous constraint `Eq a'
- in the type: Eq Bool
- Each forall-d type variable mentioned by the constraint must appear after the =>.
- In the type signature for an instance decl
-
-rnfail014.hs:12:
- Ambiguous constraint `Eq a'
- in the type: Int -> Int
- Each forall-d type variable mentioned by the constraint must appear after the =>.
- In the type signature for `f'
-
rnfail014.hs:17:
- All of the type variable(s) in the constraint `Eq a' are already in scope
+ All of the type variables in the constraint `Eq a' are already in scope
At least one must be universally quantified here
- In the type signature for `op'
-
-Compilation had errors
-
+ In the type `(Eq a) => a -> a'
+ In the class declaration for `Foo'
diff --git a/ghc/tests/rename/should_fail/rnfail019.stderr b/ghc/tests/rename/should_fail/rnfail019.stderr
index e2305c377b..f47d3577c6 100644
--- a/ghc/tests/rename/should_fail/rnfail019.stderr
+++ b/ghc/tests/rename/should_fail/rnfail019.stderr
@@ -2,4 +2,4 @@
rnfail019.hs:5:
The operator `:' [infixr 5] of a section
must have lower precedence than the operand `(:)' [infixr 5]
- In the section: `((x : y) :)'
+ in the section: `((x : y) :)'
diff --git a/ghc/tests/rename/should_fail/rnfail020.stderr b/ghc/tests/rename/should_fail/rnfail020.stderr
index 461dc6d052..a2298c0e10 100644
--- a/ghc/tests/rename/should_fail/rnfail020.stderr
+++ b/ghc/tests/rename/should_fail/rnfail020.stderr
@@ -1,9 +1,10 @@
rnfail020.hs:12:
- The constraint `Eq a' does not mention any of the universally quantified type variables
- in the type `(Eq a) => Set a -> Set a -> Set a'
+ All of the type variables in the constraint `Eq a' are already in scope
+ At least one must be universally quantified here
+ In the type `(Eq a) => Set a -> Set a -> Set a'
In a type signature for `unionSets'
- In an equation for function `unionSetB':
+ In the definition of `unionSetB':
unionSetB (s1 :: Set a) s2
= unionSets s1 s2
where