Skip to content

Commit f5fa782

Browse files
Clarify phrasing of view pattern error message based on feedback
1 parent eeb851e commit f5fa782

File tree

1 file changed

+2
-1
lines changed
  • message-index/messages/GHC-66228

1 file changed

+2
-1
lines changed

message-index/messages/GHC-66228/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ introduced: 9.6.1
66
---
77

88
A [view pattern](https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/view_patterns.html) allows pattern matching on the result of a function.
9-
While most patterns share syntax with the corresponding expressions, there is no expression counterpart to view patterns.
9+
While most kinds of patterns look just like the expressions that construct the data that the pattern recognizes, view patterns don't correspond directly to an expression.
10+
This means that using them where an expression is expected is an error.

0 commit comments

Comments
 (0)