aboutsummaryrefslogtreecommitdiff
path: root/CabalHelper/Licenses.hs
diff options
context:
space:
mode:
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