[Haskell-cafe] use of -Werror

Peter Jones mlists at pmade.com
Tue Jul 1 18:23:22 UTC 2014

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

Peter Jones, Founder, Devalot.com
Defending the honor of good code

More information about the Haskell-Cafe mailing list