[Haskell-cafe] use of -Werror

Ganesh Sittampalam ganesh at earth.li
Wed Jul 2 05:44:42 UTC 2014


On 01/07/2014 19:23, Peter Jones wrote:
> Johan Larson <johan.g.larson at gmail.com> writes:
>> Is there a consensus within the Haskell community on the use of -Werror in
>> packages uploaded to Cabal?
> 
> I like to hide -Werror behind a cabal flag:
> 
> flag maintainer
>   description: Enable settings for the package maintainer.
>   default: False
> 
> if flag(maintainer)
>   ghc-options: -Werror

I do this too (with the Manual flag), but one problem is it makes 'cabal
check' complain even with the conditional:

https://github.com/haskell/cabal/issues/1775

There's the cabal.config option mentioned in that issue but it's less
discoverable.

Ganesh


More information about the Haskell-Cafe mailing list