<div dir="ltr"><div dir="ltr">On Thu, 17 Dec 2020 at 16:42, Spiwack, Arnaud <<a href="mailto:arnaud.spiwack@tweag.io">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:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><p style="margin:0px 0px 1.2em">On Thu, Dec 17, 2020 at 5:24 PM Simon Marlow <a href="http://mailto:marlowsd@gmail.com" target="_blank">marlowsd@gmail.com</a> wrote:</p>
<div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">In the case of partial type signatures  <b>you can't use the feature without generating a warning</b>, which is quite a different matter, I think. It would be even stranger if it was an error!</div></blockquote></div>
<p style="margin:0px 0px 1.2em"> I’m not sure I follow, I can certainly use PartialTypeSignature without generating a warning:</p>
<pre style="font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;background-color:rgb(248,248,248);white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block">> :set -XPartialTypeSignatures 
> :set -Wno-partial-type-signatures 
> f :: _ -> _ ; f = (+) 1
</code></pre><p style="margin:0px 0px 1.2em"></p></div></div></blockquote><div>You disabled the warning!</div><div><br></div><div>I'm sorry I'm not making this point very well, let me try to clarify.  I'm saying that it would be strange to enable PartialTypeSignatures by default *and* leave the warning turned on by default, because it would be impossible to use the feature without generating a warning (unless of course you disable the warning explicitly, but it's silly to have to do that just to use a feature that is enabled by default). It would be fine to leave the extension disabled, or better (in my view) to enable the extension and disable the warning.<br></div></div><div class="gmail_quote"><br></div><div class="gmail_quote">Cheers</div><div class="gmail_quote">Simon</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><p style="margin:0px 0px 1.2em">Unless you are saying that the feature <i>is</i> the warning. Which is debatable.</p>
<p style="margin:0px 0px 1.2em">If you think that the warning is the feature, though, then you have the same feature without PartialTypeSignature, but as an error instead</p>
<pre style="font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;background-color:rgb(248,248,248);white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block">> f :: _ -> _ ; f = (+) 1

<interactive>:2:6: error:
    * Found type wildcard `_' standing for `Integer'
      To use the inferred type, enable PartialTypeSignatures
    * In the type `_ -> _'
      In the type signature: f :: _ -> _

<interactive>:2:11: error:
    * Found type wildcard `_' standing for `Integer'
      To use the inferred type, enable PartialTypeSignatures
    * In the type `_ -> _'
      In the type signature: f :: _ -> _
</code></pre><div title="MDH:PGRpdiBkaXI9Imx0ciIgZ21haWxfb3JpZ2luYWw9IjEiPk9uIFRodSwgRGVjIDE3LCAyMDIwIGF0
IDU6MjQgUE0gU2ltb24gTWFybG93ICZsdDttYXJsb3dzZEBnbWFpbC5jb20mZ3Q7IHdyb3RlOjxi
cj48L2Rpdj48ZGl2IGNsYXNzPSJnbWFpbF9xdW90ZSI+PGJsb2NrcXVvdGUgY2xhc3M9ImdtYWls
X3F1b3RlIiBzdHlsZT0ibWFyZ2luOiAwcHggMHB4IDBweCAwLjhleDsgYm9yZGVyLWxlZnQ6IDFw
eCBzb2xpZCByZ2IoMjA0LCAyMDQsIDIwNCk7IHBhZGRpbmctbGVmdDogMWV4OyI+PGRpdiBkaXI9
Imx0ciI+SW4gdGhlIGNhc2Ugb2YgcGFydGlhbCB0eXBlIHNpZ25hdHVyZXMgIDxiPnlvdSBjYW4n
dCB1c2UgdGhlIGZlYXR1cmU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