[ANNOUNCE] GHC 8.0.1 release candidate 2

Ben Gamari ben at smart-cactus.org
Mon Feb 15 19:16:24 UTC 2016


Sven Panne <svenpanne at gmail.com> writes:

> I'm a little bit late to the 8.0.1 show, but nevertheless: Motivated by the
> current discussion about -Wcompat and friends I decided to take a detailed
> look at the warnings in my projects and hit a regression(?): Somehow I'm
> unable to suppress the "Top-level binding with no type signature" warnings
> from 8.0.1 onwards.
>
> The gory details: In my .cabal file I set -Wall (
> https://github.com/haskell-opengl/OpenGLRaw/blob/master/OpenGLRaw.cabal#L618),
> and in my .travis.yml I set -Werror (
> https://github.com/haskell-opengl/OpenGLRaw/blob/master/.travis.yml#L76).
> But the -Wno-missing-signatures pragma (
> https://github.com/haskell-opengl/OpenGLRaw/blob/master/src/Graphics/GL/Tokens.hs#L2)
> doesn't work, see
> https://travis-ci.org/haskell-opengl/OpenGLRaw/jobs/109400373. Using
> -fno-warn-missing-signatures didn't work, either, see
> https://travis-ci.org/haskell-opengl/OpenGLRaw/jobs/109396738.
>
> Am I doing something wrong here or is this really a regression? I'm quite
> sure that suppressions via pragmas worked in the past... :-(
>
The reason for this is that the things missing signatures are pattern
synonyms, which have their warnings controlled by -Wmissing-pat-syn-sigs
[1], which is enabled in -Wall by default.

Cheers,

- Ben


[1] http://downloads.haskell.org/~ghc/master/users-guide//using-warnings.html#ghc-flag--Wmissing-pat-syn-sigs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 472 bytes
Desc: not available
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20160215/c73ae67d/attachment.sig>


More information about the ghc-devs mailing list