[Haskell-cafe] use of -Werror

Carter Schonwald carter.schonwald at gmail.com
Tue Jul 1 18:43:05 UTC 2014


@Peter

you'll want to write
flag maintainer
  description: Enable settings for the package maintainer.
  default: False
  manual: True

note the Manual : True piece, you'll be creating a world of sad if
cabal-install auto sets that to true by accident ! :)




On Tue, Jul 1, 2014 at 2:23 PM, Peter Jones <mlists at pmade.com> 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
>
> --
> Peter Jones, Founder, Devalot.com
> Defending the honor of good code
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20140701/7fa54198/attachment.html>


More information about the Haskell-Cafe mailing list