Allow record wildcards with pattern synonyms which are defined in GHCi
With pattern synonym pattern Point {x, y} = (x, y) we can write
>>> let { x = 1; y = 2 } in Point { x = x, y = y }
(1, 2)
>>> let { x = 1; y = 2 } in Point { x, y }
(1, 2)
but record wildcards ain't workin
>>> let { x = 1; y = 2 } in Point {..}
<interactive>:342:25-36: error:
Pattern synonym ‘Point’ used as a data constructor
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.1 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |
Edited by Matthew Pickering