summaryrefslogtreecommitdiffstats
path: root/xmonad.cabal
diff options
context:
space:
mode:
authorAdam Vogt <vogt.adam@gmail.com>2010-01-18 19:15:32 +0100
committerAdam Vogt <vogt.adam@gmail.com>2010-01-18 19:15:32 +0100
commitea1566b787bca0766233d0d300658d2acd8a2b9d (patch)
tree8d7c700573e36195b7c9f0a265a1c0bda9310e65 /xmonad.cabal
parente3650fa208a29186feaaf9b70ea43786dadf872d (diff)
downloadmetatile-ea1566b787bca0766233d0d300658d2acd8a2b9d.tar
metatile-ea1566b787bca0766233d0d300658d2acd8a2b9d.zip
Correct warnings with ghc-6.12
Ignore-this: a48ed095b72aedec9eeb88781ace66dc Changes include: - compatibility with base-4 or 3 (base-2 untested) by using extensible-exceptions. This adds an additional dependency for users of ghc<6.10) - list all dependencies again when -ftesting (change in Cabal-1.8.0.2) - remove unnecessary imports - suppress -fwarn-unused-do-bind, with appropriate Cabal-1.8 workaround, described here: http://www.haskell.org/pipermail/xmonad/2010-January/009554.html darcs-hash:20100118181532-1499c-5c496678ef76f2f50b43b0fc4582cfef7c237654
Diffstat (limited to 'xmonad.cabal')
-rw-r--r--xmonad.cabal18
1 files changed, 14 insertions, 4 deletions
diff --git a/xmonad.cabal b/xmonad.cabal
index 420050b..5b43a13 100644
--- a/xmonad.cabal
+++ b/xmonad.cabal
@@ -43,12 +43,17 @@ library
XMonad.StackSet
if flag(small_base)
- build-depends: base < 4 && >=3, containers, directory, process, filepath
+ build-depends: base < 5 && >=3, containers, directory, process, filepath, extensible-exceptions
else
build-depends: base < 3
build-depends: X11>=1.5.0.0 && < 1.6, mtl, unix
- ghc-options: -funbox-strict-fields -Wall
+ if true
+ ghc-options: -funbox-strict-fields -Wall
+
+ if impl(ghc >= 6.12.1)
+ ghc-options: -fno-warn-unused-do-bind
+
ghc-prof-options: -prof -auto-all
extensions: CPP
@@ -66,7 +71,12 @@ executable xmonad
XMonad.Operations
XMonad.StackSet
- ghc-options: -funbox-strict-fields -Wall
+ if true
+ ghc-options: -funbox-strict-fields -Wall
+
+ if impl(ghc >= 6.12.1)
+ ghc-options: -fno-warn-unused-do-bind
+
ghc-prof-options: -prof -auto-all
extensions: CPP
@@ -76,4 +86,4 @@ executable xmonad
build-depends: QuickCheck < 2
ghc-options: -Werror
if flag(testing) && flag(small_base)
- build-depends: random
+ build-depends: filepath, process, directory, mtl, unix, X11, base, containers, random, extensible-exceptions