
2 Jul
2014
2 Jul
'14
1:44 a.m.
On 01/07/2014 19:23, Peter Jones wrote:
Johan Larson
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