Sven Panne <svenpa...@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
signature.asc
Description: PGP signature
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs