Created
March 30, 2012 19:43
-
-
Save eagletmt/2254384 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- _cabal.orig 2012-03-31 04:25:52.116329550 +0900 | |
+++ _cabal 2012-03-31 04:29:28.954395493 +0900 | |
@@ -352,7 +352,7 @@ | |
if ( [[ ${+_cabal_available_packages} -eq 0 ]] || _cache_invalid CABAL_AVAILABLE_PACKAGES ) && | |
! _retrieve_cache CABAL_AVAILABLE_PACKAGES; | |
then | |
- _cabal_available_packages=( $(cabal list --simple-output | cut -d' ' -f1 | uniq) ) | |
+ _cabal_available_packages=( $(tar tf ~/.cabal/packages/hackage.haskell.org/00-index.tar | grep / | cut -d/ -f1 | uniq) ) | |
_store_cache CABAL_AVAILABLE_PACKAGES _cabal_available_packages | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment