<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#FFFFFF" text="#000000">My main motivation for
going with a phantom type over newtypes was that it makes it easier to
use in<br>
an adhoc fashion without giving up type safety.<br>
<br>
As a second benefit it seemed a lot easier to implement.<br>
<br>
Cheers<br>
Andreas<br>
<br>
<br>
<br>
<span>George Colpitts schrieb am 24.06.2020 um 00:40:</span><br>
<blockquote type="cite"
cite="mid:CAB-d4A6mn46zaF8GQDhWxGOJSK_TbfB92GXBZAyD4qxuGCAutA@mail.gmail.com">
  <meta http-equiv="content-type" content="text/html; charset=utf-8">
  <div dir="ltr"><div dir="ltr"><div class="gmail_default"
style="font-family:times new roman,serif;font-size:large">I read the
email thread you refer to but it doesn't seem to explain why you went
with solution 2. If you think it worthwhile can you explain here why you
 chose solution 2?</div></div><br><div class="gmail_quote"><div
dir="ltr" class="gmail_attr">On Tue, Jun 23, 2020 at 6:55 PM Andreas
Klebinger <<a href="mailto:klebinger.andreas@gmx.at"
moz-do-not-send="true">klebinger.andreas@gmx.at</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">There was a discussion about
making UniqFM typed for the keys here a<br>
while ago.<br>
(<a
href="https://mail.haskell.org/pipermail/ghc-devs/2020-January/018451.html"
 rel="noreferrer" target="_blank" moz-do-not-send="true">https://mail.haskell.org/pipermail/ghc-devs/2020-January/018451.html</a><br>
and following)<br>
<br>
I wrote up an MR for one possible approach here:<br>
<a href="https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3577"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3577</a><br>
<br>
It implements solution 2 from that discussion.<br>
<br>
Just while getting the patch to typecheck I've already seen a number of<br>
cases where this increased<br>
readability of the code quite a bit so I think it's a good improvement.<br>
<br>
If there are strong objections to this solution let me know. In that<br>
case I'm happy to abandon the patch.<br>
If not I will clean it up and get it ready for merging.<br>
<br>
<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank"
moz-do-not-send="true">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br></blockquote></div></div>
</blockquote>
<br>
</body></html>