We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f24b9ac commit 6b97cacCopy full SHA for 6b97cac
message-index/messages/GHC-25897/index.md
@@ -6,9 +6,8 @@ introduced: 9.6.1
6
---
7
8
A pattern match on a GADT cannot succeed unless GHC knows the result
9
-type of the pattern match, for example because the pattern match has a
10
-type signature, or because the type of the pattern match can be
11
-inferred from its context.
+type of the pattern match. This information might, for example, be derived from a type
+signature, or by type inference due to the context in which the pattern match occurs.
12
13
To solve the problem you must somehow tell GHC the type of the pattern
14
match. For example, in the below error message GHC suggests giving
0 commit comments