codex 0.1.0.3 → 0.1.0.4
raw patch · 4 files changed
+6/−19 lines, 4 filesdep ~codexdep ~hackage-dbPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: codex, hackage-db
API changes (from Hackage documentation)
- Distribution.Hackage.Utils: getHackagePath :: IO FilePath
Files
- codex.cabal +3/−4
- codex/Main/Config.hs +3/−3
- src/Codex/Project.hs +0/−1
- src/Distribution/Hackage/Utils.hs +0/−11
codex.cabal view
@@ -1,5 +1,5 @@ name: codex-version: 0.1.0.3+version: 0.1.0.4 synopsis: A ctags file generator for cabal project dependencies. description: This tool download and cache the source code of packages in your local hackage,@@ -27,7 +27,6 @@ Codex Codex.Project Codex.Internal- Distribution.Hackage.Utils build-depends: base >= 4.6.0.1 && < 5 , bytestring >= 0.10.0.2 && < 0.11@@ -37,7 +36,7 @@ , download-curl >= 0.1.4 && < 0.2 , either >= 4.3.0.1 && < 4.4 , filepath >= 1.3.0.1 && < 1.4- , hackage-db >= 1.6 && < 1.8+ , hackage-db >= 1.8 && < 1.9 , MissingH >= 1.2.1.0 && < 1.3 , process >= 1.1.0.2 && < 1.3 , tar >= 0.4.0.1 && < 0.5@@ -64,4 +63,4 @@ , monad-loops >= 0.4.2 && < 0.5 , transformers , yaml >= 0.8.8.3 && < 0.9- , codex == 0.1.0.3+ , codex == 0.1.0.4
codex/Main/Config.hs view
@@ -3,7 +3,6 @@ module Main.Config where import Data.Yaml-import Distribution.Hackage.Utils (getHackagePath) import GHC.Generics import System.Directory@@ -12,6 +11,7 @@ import Codex import qualified Main.Config.Codex0 as C0+import qualified Distribution.Hackage.DB as DB data ConfigState = Ready | TaggerNotFound @@ -36,8 +36,8 @@ loadConfig :: IO Codex loadConfig = decodeConfig >>= maybe defaultConfig return where defaultConfig = do- hp <- getHackagePath- let cx = Codex hp (taggerCmd Hasktags) True True+ hp <- DB.hackagePath+ let cx = Codex (dropFileName hp) (taggerCmd Hasktags) True True encodeConfig cx return cx
src/Codex/Project.hs view
@@ -8,7 +8,6 @@ import Data.Traversable (traverse) import Distribution.InstalledPackageInfo import Distribution.Hackage.DB (Hackage, readHackage)-import Distribution.Hackage.Utils import Distribution.Package import Distribution.PackageDescription import Distribution.PackageDescription.Parse
− src/Distribution/Hackage/Utils.hs
@@ -1,11 +0,0 @@-module Distribution.Hackage.Utils where--import System.Directory-import System.FilePath---- TODO Remove once path extracted in hackage-db-getHackagePath :: IO FilePath-getHackagePath = do- homedir <- getHomeDirectory- return (joinPath [homedir, ".cabal", "packages", "hackage.haskell.org"])-