Always use extensible exceptions in ghc-pkg, rather than using ifdefs
[ghc-hetmet.git] / utils / ghc-pkg / ghc-pkg.cabal
index 0ab3534..393e44d 100644 (file)
@@ -30,15 +30,14 @@ Executable ghc-pkg
     if !flag(base3) && !flag(base4)
         Build-Depends: base       < 3
 
-    if flag(base4)
-        Build-Depends: concurrent >= 0.1 && < 0.2,
-                       getopt     >= 0.1 && < 0.2
-
     if flag(base3) || flag(base4)
         Build-Depends: directory  >= 1   && < 1.1,
                        process    >= 1   && < 1.1,
                        pretty     >= 1   && < 1.1
 
+    if impl(ghc < 6.9)
+        Build-Depends: extensible-exceptions
+
     Build-Depends: haskell98, filepath, Cabal
     if !os(windows)
         Build-Depends: unix