Skip to content

Commit 6b97cac

Browse files
Update message-index/messages/GHC-25897/index.md
Co-authored-by: David Thrane Christiansen <[email protected]>
1 parent f24b9ac commit 6b97cac

File tree

1 file changed

+2
-3
lines changed
  • message-index/messages/GHC-25897

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ introduced: 9.6.1
66
---
77

88
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.
9+
type of the pattern match. This information might, for example, be derived from a type
10+
signature, or by type inference due to the context in which the pattern match occurs.
1211

1312
To solve the problem you must somehow tell GHC the type of the pattern
1413
match. For example, in the below error message GHC suggests giving

0 commit comments

Comments
 (0)