<div dir="ltr">Is there a reason why we should write `5 @Int` as opposed to `5 :: Int`?<div><br></div><div>Also, there appears to be a typo in the spec, the part which specifies translations for integers (1 turned into 0?)</div><div><br></div><div>-Iavor</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, May 6, 2018 at 7:25 AM Joachim Breitner <<a href="mailto:mail@joachim-breitner.de">mail@joachim-breitner.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Committee,<br>
<br>
this is your secretary speaking:<br>
<br>
Sandy Maguire proposes to change the desugaring of overloaded literals<br>
so that they work nicely with type applications<br>
<a href="https://github.com/ghc-proposals/ghc-proposals/pull/129" rel="noreferrer" target="_blank">https://github.com/ghc-proposals/ghc-proposals/pull/129</a><br>
rendered at<br>
<a href="https://github.com/isovector/ghc-proposals/blob/type-apps/proposals/0000-type-apply-literals.rst" rel="noreferrer" target="_blank">https://github.com/isovector/ghc-proposals/blob/type-apps/proposals/0000-type-apply-literals.rst</a><br>
<br>
I’ll shepherd that myself.<br>
<br>
The proposal is a good example for a working proposal system here. The<br>
original version of the proposal was rather complex, reshuffling type<br>
arguments and stuff. But community input distilled this much smaller<br>
change, which can be summarized: <br>
<br>
   Desugar `5` into `integerLit (5 :: Integer)` where<br>
<br>
   integerLit :: Integer -> forall a. Num a => a<br>
   integerLit = fromInteger<br>
<br>
This allows `5 @Int` to work just fine.<br>
<br>
The proposal does not require a language extension, and does not change<br>
 what happens in the light of `RebindableSyntax`.<br>
<br>
I therefore recommend that we accept this proposal.<br>
<br>
Cheers,<br>
Joachim<br>
<br>
<br>
-- <br>
Joachim Breitner<br>
  <a href="mailto:mail@joachim-breitner.de" target="_blank">mail@joachim-breitner.de</a><br>
  <a href="http://www.joachim-breitner.de/" rel="noreferrer" target="_blank">http://www.joachim-breitner.de/</a><br>
<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>