You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: message-index/messages/GHC-66228/index.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,4 +6,5 @@ introduced: 9.6.1
6
6
---
7
7
8
8
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