<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I've been away, but I just wanted to chime in that I'm in support.<div class=""><br class=""></div><div class="">Richard<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Jun 24, 2022, at 6:29 AM, Simon Peyton Jones <<a href="mailto:simon.peytonjones@gmail.com" class="">simon.peytonjones@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-family:tahoma,sans-serif">As I say on the proposal thread, I'm in favour.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br class=""></div><div class="gmail_default" style="font-family:tahoma,sans-serif">I do want John to fix <a href="https://github.com/ghc-proposals/ghc-proposals/pull/496#issuecomment-1153303273" class="">the bug in the text </a>though.</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br class=""></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Simon<br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 12 Jun 2022 at 17:19, Eric Seidel <<a href="mailto:eric@seidel.io" class="">eric@seidel.io</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear Committee,<br class="">
<br class="">
This proposal notes an inconsistency around record wildcard syntax where the wildcard selector/binder cannot be used with nullary record constructors. In other words<br class="">
<br class="">
```<br class="">
data Foo = Foo {}<br class="">
<br class="">
x = Foo {..}<br class="">
```<br class="">
<br class="">
is rejected with the error<br class="">
<br class="">
Illegal `..' notation for constructor ‘Bar’<br class="">
The constructor has no labelled fields<br class="">
<br class="">
John notes that this is unnecessary friction that also causes grief for code generators.<br class="">
<br class="">
The proposal is to allow the use of record wildcard syntax with nullary constructors. Notably the proposal suggests allowing wildcard syntax with both nullary *records* and nullary positional data constructors, ie both of the following would be allowed.<br class="">
<br class="">
```<br class="">
data Foo = Foo {}<br class="">
data Foo = Foo<br class="">
<br class="">
x = Foo {..}<br class="">
```<br class="">
<br class="">
I noted on GitHub that this leaves a small asymmetry[1], but I still recommend accepting the proposal as is.<br class="">
<br class="">
As usual, please discuss the proposal's merits in this thread, and the technical details on GitHub.<br class="">
<br class="">
[1]: <a href="https://github.com/ghc-proposals/ghc-proposals/pull/496#issuecomment-1153221981" rel="noreferrer" target="_blank" class="">https://github.com/ghc-proposals/ghc-proposals/pull/496#issuecomment-1153221981</a><br class="">
<br class="">
Eric<br class="">
<br class="">
On Mon, May 30, 2022, at 09:28, Joachim Breitner wrote:<br class="">
> Dear Committee,<br class="">
><br class="">
> Empty records with {}<br class="">
> have been proposed by John Ericsson<br class="">
><br class="">
><br class="">
> <a href="https://github.com/ghc-proposals/ghc-proposals/pull/496" rel="noreferrer" target="_blank" class="">https://github.com/ghc-proposals/ghc-proposals/pull/496</a><br class="">
> <a href="https://github.com/Ericson2314/ghc-proposals/blob/empty-record-wildcards/proposals/0000-empty-record-wildcards.rst" rel="noreferrer" target="_blank" class="">https://github.com/Ericson2314/ghc-proposals/blob/empty-record-wildcards/proposals/0000-empty-record-wildcards.rst</a><br class="">
><br class="">
> This seems to be about straightening a corner case, so to say. I<br class="">
> suggest Eric as the shepherd.<br class="">
><br class="">
> Please guide us to a conclusion as outlined in <br class="">
> <a href="https://github.com/ghc-proposals/ghc-proposals#committee-process" rel="noreferrer" target="_blank" class="">https://github.com/ghc-proposals/ghc-proposals#committee-process</a><br class="">
><br class="">
> Thanks,<br class="">
> Joachim<br class="">
><br class="">
><br class="">
><br class="">
><br class="">
><br class="">
><br class="">
><br class="">
> -- <br class="">
> Joachim Breitner<br class="">
> <a href="mailto:mail@joachim-breitner.de" target="_blank" class="">mail@joachim-breitner.de</a><br class="">
> <a href="http://www.joachim-breitner.de/" rel="noreferrer" target="_blank" class="">http://www.joachim-breitner.de/</a><br class="">
><br class="">
> _______________________________________________<br class="">
> ghc-steering-committee mailing list<br class="">
> <a href="mailto:ghc-steering-committee@haskell.org" target="_blank" class="">ghc-steering-committee@haskell.org</a><br class="">
> <a href="https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee" rel="noreferrer" target="_blank" class="">https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee</a><br class="">
_______________________________________________<br class="">
ghc-steering-committee mailing list<br class="">
<a href="mailto:ghc-steering-committee@haskell.org" target="_blank" class="">ghc-steering-committee@haskell.org</a><br class="">
<a href="https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee" rel="noreferrer" target="_blank" class="">https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee</a><br class="">
</blockquote></div>
_______________________________________________<br class="">ghc-steering-committee mailing list<br class=""><a href="mailto:ghc-steering-committee@haskell.org" class="">ghc-steering-committee@haskell.org</a><br class="">https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee<br class=""></div></blockquote></div><br class=""></div></body></html>