summaryrefslogtreecommitdiff
path: root/testsuite/tests/patsyn/should_fail/unidir.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/tests/patsyn/should_fail/unidir.stderr')
-rw-r--r--testsuite/tests/patsyn/should_fail/unidir.stderr4
1 files changed, 3 insertions, 1 deletions
diff --git a/testsuite/tests/patsyn/should_fail/unidir.stderr b/testsuite/tests/patsyn/should_fail/unidir.stderr
index 39193dffd1..ba3799d201 100644
--- a/testsuite/tests/patsyn/should_fail/unidir.stderr
+++ b/testsuite/tests/patsyn/should_fail/unidir.stderr
@@ -1,5 +1,7 @@
unidir.hs:4:18: error:
Invalid right-hand side of bidirectional pattern synonym ‘Head’:
- pattern ‘_’ is not invertible
+ Pattern ‘_’ is not invertible
+ Suggestion: instead use an explicitly bidirectional pattern synonym, e.g.
+ pattern Head x <- x : _ where Head x = ...
RHS pattern: x : _