<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">> 

Oleg has proposed that we do essentially the same trick Richard proposed to unify Nat and Natural, but with Symbol and String. <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Well... not quite. I have commented on the proposal</div><div class="gmail_default" style="font-family:tahoma,sans-serif"><a href="https://github.com/ghc-proposals/ghc-proposals/pull/562">https://github.com/ghc-proposals/ghc-proposals/pull/562</a></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Simon<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 19 Jan 2023 at 15:28, Chris Dornan <<a href="mailto:chris@chrisdornan.com">chris@chrisdornan.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">While we are at it, here is another proposal that I think should be straightforward.<br>
<br>
Oleg has proposed that we do essentially the same trick Richard proposed to unify Nat and Natural, but with Symbol and String.<br>
<br>
Specifically, he is proposing that we replace @data Symbol@ with @newtype Symbol = MkSymbol String@. I won't try and encapsulate any further -- the original is concise and clear.<br>
<br>
  * Oleg's "Make Symbol a newtype over String" proposal: <a href="https://github.com/ghc-proposals/ghc-proposals/blob/symbol-type/proposals/0000-symbol-newtype-string.rst" rel="noreferrer" target="_blank">https://github.com/ghc-proposals/ghc-proposals/blob/symbol-type/proposals/0000-symbol-newtype-string.rst</a><br>
  * For comparison, Richard's accepted "Unify Nat and Natural" proposal: <a href="https://github.com/goldfirere/ghc-proposals/blob/natural/proposals/0000-unify-natural.rst" rel="noreferrer" target="_blank">https://github.com/goldfirere/ghc-proposals/blob/natural/proposals/0000-unify-natural.rst</a><br>
<br>
I suggest we allow the usual two weeks to speak or forever hold your peace.<br>
<br>
Chris<br>
_______________________________________________<br>
ghc-steering-committee mailing list<br>
<a href="mailto:ghc-steering-committee@haskell.org" target="_blank">ghc-steering-committee@haskell.org</a><br>
<a href="https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee" rel="noreferrer" target="_blank">https://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-steering-committee</a><br>
</blockquote></div>