[ghc-steering-committee] Modification to record dot syntax propsal

Simon Peyton Jones simonpj at microsoft.com
Mon Mar 1 09:19:10 UTC 2021


I'll mark this accepted on Wednesday, unless anyone else wants to express an opinion, or offer an alternative.
Simon

From: Simon Peyton Jones <simonpj at microsoft.com>
Sent: 23 February 2021 15:06
To: ghc-steering-committee <ghc-steering-committee at haskell.org>
Cc: Simon Peyton Jones <simonpj at microsoft.com>
Subject: Modification to record dot syntax propsal

Friends
Please see this proposal #405 to split RecordDotSyntax into two extensions<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fghc-proposals%2Fghc-proposals%2Fpull%2F405&data=04%7C01%7Csimonpj%40microsoft.com%7Caa27192c62ab448a4e2c08d8d80c8937%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637496895641978235%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=oJDy%2BiYI4kEaC%2FUJIfZbph2JnZr%2FTK%2F5aZqA6djwF3A%3D&reserved=0>
It is a small modification of #282 on record dot syntax.   The top comment gives links to the versions of the proposal before and after the change.
The main payload is:

  *   Instead of RecordDotSyntax, have to independent extensions, OverloadedRecordDot and OverloadedRecordUpdates.

I recommend acceptance of this proposal, but invite the committee's view on one point (the final bullet below). Here is the thinking

  *   RecordDotSyntax is the extension that we will eventually want programmers to user. It will probably ultimately imply NoFieldSelectors. But we aren't quite ready make that choice yet. So we don't want to specify exactly what RecordDotSyntax does yet.
  *   So we want another, less ambitious, extension to enable record-dot syntax itself, and its desugaring into getField; and similarly for record updates.
  *   This patch to the proposal goes just a little further, by dis-aggregating into two independent extensions, OverloadedRecordDot and OverloadedRecordUpdates.
  *   An alternative, if the committee prefers, would be to have a single extension (say, OverloadedRecords).
Please express your opinion.  This should not take us long.   (Technical and clarification questions would be best done on the Githhub thread, as always.)
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-steering-committee/attachments/20210301/292c652d/attachment.html>


More information about the ghc-steering-committee mailing list