aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSpencer Janssen <sjanssen@cse.unl.edu>2008-01-18 02:52:07 +0100
committerSpencer Janssen <sjanssen@cse.unl.edu>2008-01-18 02:52:07 +0100
commit68909d8a174fac503e68dc7f2174a39c9d4c9e4e (patch)
tree10cb49baf8f2e4f9bac2fe65d972f0b7c8137983
parent5c199b8eec76fdc4bb697cf8f0be263cac6ebed7 (diff)
downloadXMonadContrib-68909d8a174fac503e68dc7f2174a39c9d4c9e4e.tar.gz
XMonadContrib-68909d8a174fac503e68dc7f2174a39c9d4c9e4e.tar.xz
XMonadContrib-68909d8a174fac503e68dc7f2174a39c9d4c9e4e.zip
-Werror when flag(testing) only
darcs-hash:20080118015207-a5988-2f32ba7d8871982597ed713f1ad13c7666205309.gz
-rw-r--r--xmonad-contrib.cabal10
1 files changed, 9 insertions, 1 deletions
diff --git a/xmonad-contrib.cabal b/xmonad-contrib.cabal
index 6fdfbc8..6075a55 100644
--- a/xmonad-contrib.cabal
+++ b/xmonad-contrib.cabal
@@ -33,6 +33,10 @@ flag small_base
flag use_xft
description: Use Xft to render text
+flag testing
+ description: Testing mode
+ default: False
+
library
if flag(small_base)
build-depends: base >= 3, containers, directory, process, random
@@ -44,7 +48,11 @@ library
cpp-options: -DXFT
build-depends: mtl, unix, X11>=1.4.1, xmonad==0.5
- ghc-options: -Wall -Werror
+ ghc-options: -Wall
+
+ if flag(testing)
+ ghc-options: -Werror
+
exposed-modules: XMonad.Doc
XMonad.Doc.Configuring
XMonad.Doc.Extending