[Hackage] #58: allow darcs repo to be specified in cabal file

Hackage trac at galois.com
Tue Mar 4 13:59:22 EST 2008

#58: allow darcs repo to be specified in cabal file
  Reporter:  ijones         |        Owner:           
      Type:  enhancement    |       Status:  new      
  Priority:  high           |    Milestone:  Cabal-1.4
 Component:  Cabal library  |      Version:           
  Severity:  normal         |   Resolution:           
  Keywords:                 |   Difficulty:  normal   
Ghcversion:  6.2.1          |     Platform:  Linux    
Comment (by kolmodin):

 I'd like a tool that downloads the scm version of a cabal package. very
 simple yet I'd find it much useful.

 cabal-source get zlib
 should run darcs and give me the zlib repo in the current dir. Nice...

 About knowing which kind of repo it is, lets have a look what other tools
 Layman is an application to help the user get and update his Gentoo
 overlays (extra stuff not covered in portage).
 It uses a description file, http://www.gentoo.org/proj/en/overlays/layman-
 global.txt .
 A short snippet from the xml:
  type = "darcs"
  src  = "http://www.haskell.org/~gentoo/gentoo-haskell/"

 It mentions both the type of scm, and the location.

 Another alternative would be to just write an URI, possibly combining the
 tool and the source location:

 That would require us to invent the URI scheme when the scm itself doesn't
 provide such names itself.

 I guess writing both the type and the location in separate fields would be
 Either way, I really think the type of the tool to use must be described
 or we will not be able to do much cool stuff.

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/58#comment:7>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list