summaryrefslogtreecommitdiff
path: root/testsuite/tests/polykinds/T10516.stderr
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2015-06-18 08:54:11 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2015-06-18 08:54:11 +0100
commit5879d5aab929e9959d48e03dad456b824160b3bf (patch)
treed9c9d012dc9a06f2e0c77fc487ff5a58a8130df1 /testsuite/tests/polykinds/T10516.stderr
parent023a0ba938b69bbb89cb2ce48a07459b07783391 (diff)
downloadhaskell-5879d5aab929e9959d48e03dad456b824160b3bf.tar.gz
Report arity errors correctly despite kinds
Trac #10516 pointed out that when reporting arity errors (like "T needs 2 arguments but has been given 1"), we should not count kind arguments, since they are implicit. If we include kind args in the count, we get very confusing error messages indeed. I did a little bit of refactoring which make some error messages wobble around. But the payload of this fix is in TcValidity.tyConArityErr
Diffstat (limited to 'testsuite/tests/polykinds/T10516.stderr')
-rw-r--r--testsuite/tests/polykinds/T10516.stderr4
1 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/tests/polykinds/T10516.stderr b/testsuite/tests/polykinds/T10516.stderr
new file mode 100644
index 0000000000..0242722ea5
--- /dev/null
+++ b/testsuite/tests/polykinds/T10516.stderr
@@ -0,0 +1,4 @@
+
+T10516.hs:8:6: error:
+ The type synonym ‘App’ should have 2 arguments, but has been given 1
+ In the type signature for ‘f’: f :: f a -> X (App f) a