(Imported from Trac #759, reported by claus on 2010-11-04)
I often find myself writing example code that I'd like to distribute via cabal, but without further burdening hackage with not generally useful packages.
The source code has an undocumented(?) option --remote-repo that seems to serve that purpose, but there is little documentation, sometimes conflicting info, about how to put this to use.
Mailing list threads:
Repo layout descriptions (differs between hackage 1.0 and 2.0, which is hardcoded in cabal-install):
Related tickets: #758, comment:6🎫428
(Imported comment by @dcoutts on 2010-11-04)
I think the better solution for this use case is ticket #524 which is about making this possible:
cabal install http://code.haskell.org/~user/foo/foo-0.9.tar.gz