summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/gadt-escape1.stderr
diff options
context:
space:
mode:
authorSimon Peyton Jones <simonpj@microsoft.com>2014-04-08 17:37:45 +0100
committerSimon Peyton Jones <simonpj@microsoft.com>2014-04-08 17:37:59 +0100
commit50bfd4219157473fac47c70993fc2023a162a7f3 (patch)
tree13259e4066e4a22f5518256eca36e335938e4ee4 /testsuite/tests/gadt/gadt-escape1.stderr
parentcc3ccf9f47c7f4684cdd2b08d0e2acf50b69bc18 (diff)
downloadhaskell-50bfd4219157473fac47c70993fc2023a162a7f3.tar.gz
Improve error reporting for untouchable type variables
This change adds a suggestion Possible fix: add a type signature for ‘f’ when we have a GADT-style definition with a type we can't figure out. See Note [Suggest adding a type signature] in TcErrors. This initially came up in the discussion of Trac #8968.
Diffstat (limited to 'testsuite/tests/gadt/gadt-escape1.stderr')
-rw-r--r--testsuite/tests/gadt/gadt-escape1.stderr1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/gadt/gadt-escape1.stderr b/testsuite/tests/gadt/gadt-escape1.stderr
index 1ec5ea8515..35d1bf44d4 100644
--- a/testsuite/tests/gadt/gadt-escape1.stderr
+++ b/testsuite/tests/gadt/gadt-escape1.stderr
@@ -9,6 +9,7 @@ gadt-escape1.hs:19:58:
at gadt-escape1.hs:19:43-50
‘t’ is a rigid type variable bound by
the inferred type of weird1 :: t at gadt-escape1.hs:19:1
+ Possible fix: add a type signature for ‘weird1’
Expected type: t
Actual type: ExpGADT t1
Relevant bindings include