Re: suppress warning "Defined but not used: type variable ‘x’" in GHC-8.0

Carter Schonwald carter.schonwald at gmail.com
Sat Jan 9 23:06:07 UTC 2016


Have you tried _x instead?

On Saturday, January 9, 2016, Henning Thielemann <
lemming at henning-thielemann.de> wrote:

>
> GHC-8.0 emits several new warnings of this kind:
>
>    Defined but not used: type variable ‘x’
>
> for declarations like
>
>    type instance Snd x y = y
>
> Enthusiastically, I started to replace unused type function arguments by
> underscores, only to find out that older GHC versions do not accept that.
> With what option can I disable this warning? Or can it be removed from
> -Wall for now?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/glasgow-haskell-users/attachments/20160109/600e11b9/attachment.html>


More information about the Glasgow-haskell-users mailing list