summaryrefslogtreecommitdiff
path: root/utils/hpc/hpc-bin.cabal
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-08-25 12:09:07 +0000
committerIan Lynagh <igloo@earth.li>2008-08-25 12:09:07 +0000
commit94368cd8a82872a16ee07ed8444a37939f3fe482 (patch)
treeb883b85bd6d581820aaecca32fa6f9cf0c857faf /utils/hpc/hpc-bin.cabal
parent58a669d486c151eeacc353cad000891a56e8b68f (diff)
downloadhaskell-94368cd8a82872a16ee07ed8444a37939f3fe482.tar.gz
Get everything building with base 4 in the HEAD
Some things were using the base3 compat library.
Diffstat (limited to 'utils/hpc/hpc-bin.cabal')
-rw-r--r--utils/hpc/hpc-bin.cabal18
1 files changed, 14 insertions, 4 deletions
diff --git a/utils/hpc/hpc-bin.cabal b/utils/hpc/hpc-bin.cabal
index 8564fa4360..2c1cd97fb5 100644
--- a/utils/hpc/hpc-bin.cabal
+++ b/utils/hpc/hpc-bin.cabal
@@ -13,19 +13,29 @@ Category: Development
build-type: Simple
cabal-version: >=1.2
+Flag base4
+ Description: Choose the even newer, even smaller, split-up base package.
+
Flag base3
Description: Choose the new smaller, split-up base package.
Executable hpc
Main-Is: Hpc.hs
Other-Modules: HpcParser
+
+ if flag(base4)
+ Build-Depends: base >= 4 && < 5
if flag(base3)
- Build-Depends: base >= 3 && < 4,
- directory >= 1 && < 1.1,
+ Build-Depends: base >= 3 && < 4
+ if !flag(base3) && !flag(base4)
+ Build-Depends: base < 3
+
+ if flag(base4)
+ Build-Depends: getopt >= 0.1 && < 0.2
+ if flag(base3) || flag(base4)
+ Build-Depends: directory >= 1 && < 1.1,
containers >= 0.1 && < 0.2,
array >= 0.1 && < 0.2
- else
- Build-Depends: base < 3
Build-Depends: haskell98, hpc
Extensions: CPP