summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_fail/T2627b.stderr
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2012-10-19 02:20:12 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2012-10-19 02:20:12 +0100
commit8bc6c4a613b5d16118469248cfb8025a5175a174 (patch)
tree56146daa18ef6f54974bf2c22c9121e2912a51da /testsuite/tests/indexed-types/should_fail/T2627b.stderr
parent09cdd12b22bcff1876ea80c0d9878507c2ed4f1f (diff)
downloadhaskell-8bc6c4a613b5d16118469248cfb8025a5175a174.tar.gz
Improvements to kind error messages, mainly
Also some expected/actual messages are now the right way round
Diffstat (limited to 'testsuite/tests/indexed-types/should_fail/T2627b.stderr')
-rw-r--r--testsuite/tests/indexed-types/should_fail/T2627b.stderr11
1 files changed, 4 insertions, 7 deletions
diff --git a/testsuite/tests/indexed-types/should_fail/T2627b.stderr b/testsuite/tests/indexed-types/should_fail/T2627b.stderr
index e18a8d2301..acf77ab303 100644
--- a/testsuite/tests/indexed-types/should_fail/T2627b.stderr
+++ b/testsuite/tests/indexed-types/should_fail/T2627b.stderr
@@ -1,12 +1,9 @@
T2627b.hs:20:24:
- Couldn't match expected type `Dual (Dual a0)' with actual type `a0'
- `a0' is untouchable
- inside the constraints (b ~ W a2 b2)
- bound by a pattern with constructor
- Wr :: forall a b. a -> Comm b -> Comm (W a b),
- in an equation for `conn'
- at T2627b.hs:20:14-19
+ Occurs check: cannot construct the infinite type:
+ a0 ~ Dual (Dual a0)
+ The type variable `a0' is ambiguous
+ Possible fix: add a type signature that fixes these type variable(s)
In the expression: conn undefined undefined
In an equation for `conn':
conn (Rd k) (Wr a r) = conn undefined undefined