Update OverloadedLabels docs and document HasField
ClosedPublic

Authored by adamgundry on Feb 17 2017, 8:06 AM.

Details

Summary

This documents the recent changes to OverloadedLabels and the addition of the HasField built-in class. It includes a comment about overloaded label syntax in the presence of unboxed tuples, to fix Trac #12459. It would be good to include this in 8.2.1 as otherwise the documentation for OverloadedLabels will be incorrect.

Test Plan

n/a

Diff Detail

Repository
rGHC Glasgow Haskell Compiler
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
adamgundry created this revision.Feb 17 2017, 8:06 AM
bgamari accepted this revision.Feb 23 2017, 8:12 PM

This looks great save one wibble which I can take care of when I merge.

utils/mkUserGuidePart/Options/Language.hs
492

Oops: 8.2.1.

This revision is now accepted and ready to land.Feb 23 2017, 8:12 PM

Thanks @bgamari!

utils/mkUserGuidePart/Options/Language.hs
492

No, 8.0.1 is correct, because that's when OverloadedLabels was added as an extension (although the behaviour will change a bit in 8.2.1). I missed adding this entry when writing the original OverloadedLabels docs.

This revision was automatically updated to reflect the committed changes.