You need to sign in or sign up before continuing.
RFC, allow local bindings in pattern synonyms
Code from #11992 (closed), allow users to write something like
pattern Suc :: Int -> Int
pattern Suc n <- (hasSuc -> Just n)
where Suc n = n + 1
hasSuc :: Int -> Maybe Int
hasSuc n = [ n - 1 | n > 0 ]
Trac metadata
| Trac field | Value |
|---|---|
| Version | |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |