<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">El dom, 29 nov 2020 a las 12:12, Simon Marlow (<<a href="mailto:marlowsd@gmail.com">marlowsd@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr">On Wed, 25 Nov 2020 at 11:21, Spiwack, Arnaud <<a href="mailto:arnaud.spiwack@tweag.io" target="_blank">arnaud.spiwack@tweag.io</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br>## OverloadedX<br><br>These extensions can confuse type inference, yielding ambiguous type<br>variables message. And as much as I like them, I don't think it's safe<br>to include them yet. Not until we have a reasonable story for<br>defaulting literals.<br><br>OverloadedLabels: no<br>OverloadedLists: no<br>OverloadedStrings: no<br></div></div></blockquote><div><br></div><div>For what it's worth, I've been writing code with OverloadedStrings for several years now and in my experience it rarely causes a problem, even for beginners. The context almost always provides enough information to resolve the ambiguity. (admittedly I'm slightly surprised by this too, but experience has convinced me)<br></div><div><br></div><div>I don't have much experience with OverloadedLists, but I'd be prepared to believe that it's a similar story there too.<br></div></div></div></blockquote><div><br></div><div>Adding to this, I think that both OverloadedStrings and OverloadedLists go very well with the idea of overloaded literals story that Haskell already has for numbers.</div><div><br></div><div>Regards,</div><div>Alejandro</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div></div><div><br></div><div>OverloadedLabels is really a new syntactic form and doesn't fall into the same category as the other two here.<br></div><div> </div><div>Cheers</div><div>Simon</div></div></div>
_______________________________________________<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></div>