diff options
Diffstat (limited to 'CabalHelper')
-rw-r--r-- | CabalHelper/Licenses.hs | 4 |
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 |