packages feed

hackage-db 1.11 → 1.22

raw patch · 3 files changed

+6/−7 lines, 3 filesdep ~CabalPVP ok

version bump matches the API change (PVP)

Dependency ranges changed: Cabal

API changes (from Hackage documentation)

Files

hackage-db.cabal view
@@ -1,5 +1,5 @@ Name:                   hackage-db-Version:                1.11+Version:                1.22 Copyright:              Peter Simons License:                BSD3 License-File:           LICENSE@@ -10,7 +10,7 @@ Synopsis:               access Hackage's package database via Data.Map Cabal-Version:          >= 1.6 Build-Type:             Simple-Tested-With:            GHC >= 6.10.4 && <= 7.8.3+Tested-With:            GHC >= 6.10.4 && <= 7.8.4 Description:    This module provides simple access to the Hackage database by means    of @Data.Map@. Suppose you wanted to implement a utility that queries
src/Distribution/Hackage/DB/Parsed.hs view
@@ -16,7 +16,6 @@   )   where -import qualified Data.ByteString.Lazy as BSC ( unpack ) import Data.ByteString.Lazy.Char8 ( ByteString ) import Data.Map import Data.String.UTF8 ( toString, fromRep )@@ -73,4 +72,4 @@                      ParseFailed err -> Left (show err)   where     decodeUTF8 :: ByteString -> String-    decodeUTF8 = toString . fromRep . BSC.unpack+    decodeUTF8 = toString . fromRep
src/Distribution/Hackage/DB/Path.hs view
@@ -11,7 +11,7 @@  module Distribution.Hackage.DB.Path ( hackagePath ) where -import System.Directory ( getHomeDirectory )+import System.Directory ( getAppUserDataDirectory ) import System.FilePath ( joinPath )  -- | Determine the default path of the Hackage database, which typically@@ -20,5 +20,5 @@  hackagePath :: IO FilePath hackagePath = do-  homedir <- getHomeDirectory-  return $ joinPath [homedir, ".cabal", "packages", "hackage.haskell.org", "00-index.tar"]+  cabalDir <- getAppUserDataDirectory "cabal"+  return $ joinPath [cabalDir, "packages", "hackage.haskell.org", "00-index.tar"]