Skip to content
Snippets Groups Projects
Commit bfeb01f2 authored by Duncan Coutts's avatar Duncan Coutts
Browse files

Drop /packages/archive from default remote repo URL

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.
parent a6a7205f
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment