Skip to content

Commit

Permalink
Drop /packages/archive from default remote repo URL
Browse files Browse the repository at this point in the history
Instead of the old http://hackage.haskell.org/packages/archive
we can just use http://hackage.haskell.org/ and avoid doing
an http redirect. The old one continues to work of course.
  • Loading branch information
dcoutts committed Mar 8, 2015
1 parent a6a7205 commit bfeb01f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cabal-install/Distribution/Client/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,11 @@ defaultRemoteRepo :: RemoteRepo
defaultRemoteRepo = RemoteRepo name uri
where
name = "hackage.haskell.org"
uri = URI "http:" (Just (URIAuth "" name "")) "/packages/archive" "" ""
uri = URI "http:" (Just (URIAuth "" name "")) "/" "" ""
-- Note that lots of old ~/.cabal/config files will have the old url
-- http://hackage.haskell.org/packages/archive
-- but new config files can use the new url (without the /packages/archive)
-- and avoid having to do a http redirect

--
-- * Config file reading
Expand Down

0 comments on commit bfeb01f

Please sign in to comment.