summaryrefslogtreecommitdiff
path: root/testsuite/tests/gadt/gadt-escape1.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/gadt/gadt-escape1.stderr')
-rw-r--r--testsuite/tests/gadt/gadt-escape1.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuite/tests/gadt/gadt-escape1.stderr b/testsuite/tests/gadt/gadt-escape1.stderr
index f2b7ac569e..b237361699 100644
--- a/testsuite/tests/gadt/gadt-escape1.stderr
+++ b/testsuite/tests/gadt/gadt-escape1.stderr
@@ -1,6 +1,6 @@
gadt-escape1.hs:19:58: error:
- • Could not deduce: p ~ ExpGADT Int
+ • Could not deduce (p ~ ExpGADT Int)
from the context: t ~ Int
bound by a pattern with constructor: ExpInt :: Int -> ExpGADT Int,
in a case alternative
@@ -10,10 +10,10 @@ gadt-escape1.hs:19:58: error:
‘p’ is a rigid type variable bound by
the inferred type of weird1 :: p
at gadt-escape1.hs:19:1-58
- Possible fix: add a type signature for ‘weird1’
• In the expression: a
In a case alternative: Hidden (ExpInt _) a -> a
In the expression:
case (hval :: Hidden) of Hidden (ExpInt _) a -> a
• Relevant bindings include
weird1 :: p (bound at gadt-escape1.hs:19:1)
+ Suggested fix: Consider giving ‘weird1’ a type signature