haskellfoundation / haskellfoundation/error-message-index
Document GHC-81303
Open
Beginner friendly
- Dominant language
- Haskell
- Stars
- 108
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
Here's minimal repro steps:
```haskell
{-# LANGUAGE OrPatterns #-}
foo :: Either Int Int -> String
foo (Left _; Right _) = "boom"
```
This code is all fine, bu changing either `_` to `x` triggers the error:
```
An or-pattern may not bind term or type variables such as ‘x’ [GHC-81303]
```
Contributor guide
Research direction
Search the error-message index for GHC-81303 and use the minimal OrPatterns reproduction in the issue as the starting example. Document why replacing either wildcard with x triggers the error, and consider the work complete when the index explains the restriction clearly for this example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 70/100