aboutsummaryrefslogtreecommitdiff
path: root/CabalHelper/Licenses.hs
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2015-08-31 08:18:38 +0200
committerDaniel Gröber <dxld@darkboxed.org>2015-08-31 08:18:38 +0200
commit132aeadd04d2946d95d48034aad81117a8737374 (patch)
tree2fe0683e6775058b750ab78a2309debc1b4618dd /CabalHelper/Licenses.hs
parent0a0090bbb8d1fa8ffe42cc7a09fa8f2fd0350109 (diff)
Fix Cabal HEAD
Diffstat (limited to 'CabalHelper/Licenses.hs')
-rw-r--r--CabalHelper/Licenses.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/CabalHelper/Licenses.hs b/CabalHelper/Licenses.hs
index 7c261bf..e237e58 100644
--- a/CabalHelper/Licenses.hs
+++ b/CabalHelper/Licenses.hs
@@ -26,7 +26,9 @@ import System.IO (hPutStrLn, stderr)
--------------------------------------------------------------------------------
-#if CABAL_MAJOR == 1 && CABAL_MINOR >= 22
+#if CABAL_MAJOR == 1 && CABAL_MINOR > 22
+type PackageIndex a = Cabal.PackageIndex (InstalledPackageInfo.InstalledPackageInfo)
+#elif CABAL_MAJOR == 1 && CABAL_MINOR >= 22
type PackageIndex a = Cabal.PackageIndex (InstalledPackageInfo.InstalledPackageInfo_ a)
#else
type PackageIndex a = Cabal.PackageIndex