X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=utils%2Fhpc%2Fhpc-bin.cabal;h=cd66853e5ebc47ab8f3a90c9e67913b0c2159ed0;hb=47d37047e1f51f32184e7a3b6e68a22c2156ae32;hp=f980e4db62374e75b6b9028f860144737bf6bc51;hpb=763ff8ece976a1de1093cd35f82393e13aa7db70;p=ghc-hetmet.git diff --git a/utils/hpc/hpc-bin.cabal b/utils/hpc/hpc-bin.cabal index f980e4d..cd66853 100644 --- a/utils/hpc/hpc-bin.cabal +++ b/utils/hpc/hpc-bin.cabal @@ -13,18 +13,27 @@ 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, - containers >= 0.1 && < 0.2, - array >= 0.1 && < 0.2 - else - Build-Depends: base < 3 + Build-Depends: base >= 3 && < 4 + if !flag(base3) && !flag(base4) + Build-Depends: base < 3 + + if flag(base3) || flag(base4) + Build-Depends: directory >= 1 && < 1.1, + containers >= 0.1 && < 0.3, + array >= 0.1 && < 0.3 Build-Depends: haskell98, hpc Extensions: CPP