
#279: Cabal-upload could have a smarter default ---------------------------------+------------------------------------------ Reporter: guest | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.2.3.0 Severity: minor | Keywords: Difficulty: normal | Ghcversion: 6.8.2 Platform: | ---------------------------------+------------------------------------------ Cabal-upload is a nice enough tool, but it doesn't have a good default: it just errors out if not specifically told exactly where to find a tarball. I think this could be smarter. cabal-upload will almost always be run in the top level of a cabal package. A much better default would be: if no arguments are given, cabal-upload looks in dist/ and if there is an appropriate tarball in it, uploads it. Smarter possibilities: * if there are multiple tarballs, instead of bailing out, cabal-upload just picks the highest numbered one. * before looking in dist/, do a runhaskell Setup sdist. -- gwern -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/279 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects