Permalink
Browse files

lens.cabal: Add flag lib-Werror

.travis.yml: Activate the flag
  • Loading branch information...
1 parent 9b889e5 commit 262a6358b6d1d81971be80d12fcb0dbfdacdb06e @ion1 ion1 committed Dec 31, 2012
Showing with 8 additions and 1 deletion.
  1. +1 −1 .travis.yml
  2. +7 −0 lens.cabal
View
2 .travis.yml
@@ -9,7 +9,7 @@ before_install:
- sudo apt-get -q -y install hlint || cabal install hlint
install:
- - cabal configure $mode
+ - cabal configure -flib-Werror $mode
- cabal build
script:
View
7 lens.cabal
@@ -149,6 +149,10 @@ flag trustworthy
default: True
manual: True
+flag lib-Werror
+ default: False
+ manual: True
+
library
build-depends:
array >= 0.3.0.2 && < 0.5,
@@ -257,6 +261,9 @@ library
other-extensions: Trustworthy
cpp-options: -DDEFAULT_SIGNATURES=1
+ if flag(lib-Werror)
+ ghc-options: -Werror
+
ghc-options: -Wall -fwarn-tabs -O2 -fdicts-cheap -funbox-strict-fields
hs-source-dirs: src

0 comments on commit 262a635

Please sign in to comment.