X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=utils%2Fghc-pkg%2Fghc-pkg.cabal;h=393e44d4158a0a1583505a91580542bc4e9fccf7;hb=b769418ce58fd409f580e4625ef7dbb9b42dacbf;hp=cefad041dd547f3fb88717a4f75a55200c89f8fc;hpb=33fd028c5ee862fc97ac3cf79329b40608fbaab6;p=ghc-hetmet.git diff --git a/utils/ghc-pkg/ghc-pkg.cabal b/utils/ghc-pkg/ghc-pkg.cabal index cefad04..393e44d 100644 --- a/utils/ghc-pkg/ghc-pkg.cabal +++ b/utils/ghc-pkg/ghc-pkg.cabal @@ -13,19 +13,31 @@ 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 ghc-pkg Main-Is: Main.hs Extensions: CPP, ForeignFunctionInterface + + if flag(base4) + Build-Depends: base >= 4 && < 5 if flag(base3) - Build-Depends: base >= 3 && < 5, - directory >= 1 && < 1.1, + 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, process >= 1 && < 1.1, pretty >= 1 && < 1.1 - else - Build-Depends: base < 3 + + if impl(ghc < 6.9) + Build-Depends: extensible-exceptions + Build-Depends: haskell98, filepath, Cabal if !os(windows) Build-Depends: unix