Examples with language extensions
Are we okay with examples in the GHC user guide uses language extensions?
The documentation has this code
inc :: Counter a -> Counter a
inc (NewCounter x i d t) = NewCounter
{ _this = i x, _inc = i, _display = d, tag = t }
which could be written
inc :: Counter a -> Counter a
inc NewCounter{..} = NewCounter{ _this = _inc _this, .. }
if we're okay with that tradeoff.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 8.2.1 |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Documentation |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |