[ghc-steering-committee] #380 GHC2021: Forth status update / kialo.com
Spiwack, Arnaud
arnaud.spiwack at tweag.io
Thu Dec 17 16:42:06 UTC 2020
On Thu, Dec 17, 2020 at 5:24 PM Simon Marlow marlowsd at gmail.com
<http://mailto:marlowsd@gmail.com> wrote:
In the case of partial type signatures *you can't use the feature without
> generating a warning*, which is quite a different matter, I think. It
> would be even stranger if it was an error!
>
I’m not sure I follow, I can certainly use PartialTypeSignature without
generating a warning:
> :set -XPartialTypeSignatures
> :set -Wno-partial-type-signatures
> f :: _ -> _ ; f = (+) 1
Unless you are saying that the feature *is* the warning. Which is debatable.
If you think that the warning is the feature, though, then you have the
same feature without PartialTypeSignature, but as an error instead
> 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 :: _ -> _
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-steering-committee/attachments/20201217/ddeec209/attachment-0001.html>
More information about the ghc-steering-committee
mailing list