Skip to content

Commit 487540e

Browse files
authored
Update index.md
1 parent 2ae6011 commit 487540e

File tree

1 file changed

+1
-1
lines changed
  • message-index/messages/GHC-58008

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ flag: -Wgadt-mono-local-binds
77
---
88

99
This warning is triggered on pattern matching involving GADTs, if `MonoLocalBinds` is disabled. Type inference can be fragile in this case.
10-
See [the OutsideIn(X) paper](https://doi.org/10.1017/S0956796811000098) and Let-generalisation for more details.
10+
See [the OutsideIn(X) paper](https://doi.org/10.1017/S0956796811000098) and [Let-generalisation](https://ghc.gitlab.haskell.org/ghc/doc/users_guide/exts/let_generalisation.html) for more details.
1111
To resolve this warning, you can enable `MonoLocalBinds` or an extension implying it (`GADTs` or `TypeFamilies`).
1212
The warning is also triggered when matching on GADT-like pattern synonyms (i.e. pattern synonyms containing equalities in provided constraints).
1313
In previous versions of GHC (9.2 and below), it was an error to pattern match on a GADT if neither `GADTs` nor `TypeFamilies` were enabled.

0 commit comments

Comments
 (0)