From 132aeadd04d2946d95d48034aad81117a8737374 Mon Sep 17 00:00:00 2001 From: Daniel Gröber Date: Mon, 31 Aug 2015 08:18:38 +0200 Subject: Fix Cabal HEAD --- CabalHelper/Licenses.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3