<div dir="ltr"><div dir="ltr">The Pretty class (from Text.PrettyPrint.HughesPJClass) uses Rational.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 17, 2020 at 9:12 AM Carter Schonwald <<a href="mailto:carter.schonwald@gmail.com">carter.schonwald@gmail.com</a>> wrote:<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><div dir="auto">Oh yeah!</div></div><div dir="auto">I feel like everyone’s wondered about that approach. But it definitely would need some experiments to validate. But in some ways it’d be super fascinating. </div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 17, 2020 at 9:40 AM Henning Thielemann <<a href="mailto:lemming@henning-thielemann.de" target="_blank">lemming@henning-thielemann.de</a>> wrote:<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"><br>
On Sun, 16 Aug 2020, Carter Schonwald wrote:<br>
<br>
> I do think that the work needed to actually support fractional <br>
> precedence in ghc is pretty minimal. Or at least I remember having a <br>
> conversation about it a few years ago, and the conclusion was that <br>
> adding precedence would be super easy to do, but just lacked any good <br>
> motivating example from real libraries. <br>
<br>
I remember this discussion, too, and I guess that it was started by Simon <br>
Marlow and it ended with recalling that decades ago something more <br>
advanced was discussed: Groups of equal precedence and relations between <br>
the groups. But that one was too complicated to be implemented.</blockquote></div></div>
_______________________________________________<br>
Libraries mailing list<br>
<a href="mailto:Libraries@haskell.org" target="_blank">Libraries@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/libraries</a><br>
</blockquote></div>