[Hackage] #411: Command to install dependencies of a package.

#411: Command to install dependencies of a package. ---------------------------------+------------------------------------------ Reporter: mornfall | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: cabal-install tool | Version: 1.6.0.1 Severity: normal | Keywords: Difficulty: easy (<4 hours) | Ghcversion: 6.8.3 Platform: | ---------------------------------+------------------------------------------ Something like cabal install-deps or install --deps-only or such. We spoke about this with Duncan and this is the proposed solution to my use-case: I have a project that basically consists of a simple shebang haskell script (go.hs), which happens to have somewhat obscure dependencies. I am not interested in building a binary out of this script, nor installing it: but I'd like to use cabal to track and automatically install the dependencies for it. Hence, I would provide a cabal file, whose main purpose would be for people to run "cabal install-deps", which would enable them to run ./go.hs directly... Hopefully it is clear what I mean here... Don't hesitate to prod me if you have better suggestions, or, questions... -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/411 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#411: Command to install dependencies of a package. ---------------------------------+------------------------------------------ Reporter: mornfall | Owner: Type: defect | Status: new Priority: normal | Milestone: cabal-install-0.8 Component: cabal-install tool | Version: 1.6.0.1 Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.8.3 | Platform: ---------------------------------+------------------------------------------ Changes (by duncan): * milestone: => cabal-install-0.8 -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/411#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#411: Command to install dependencies of a package. ---------------------------------+------------------------------------------ Reporter: mornfall | Owner: Type: defect | Status: new Priority: normal | Milestone: cabal-install-0.8 Component: cabal-install tool | Version: 1.6.0.1 Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.8.3 | Platform: ---------------------------------+------------------------------------------ Comment (by duncan): It's been pointed out that this is the natural thing to suggest to users when `cabal configure` fails with missing dependencies. The alternative is to tell users to do something like: {{{ $ cabal configure Resolving dependencies... Configuring foo-1.0... setup: At least the following dependencies are missing: bar >= 1.0 cabal: You can install these dependencies with: cabal install 'bar >= 1.0' }}} It would have to give the version constraints appropriately and in quotes to prevent bad things with the shell. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/411#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#411: Command to install dependencies of a package. ---------------------------------+------------------------------------------ Reporter: mornfall | Owner: Type: defect | Status: new Priority: normal | Milestone: cabal-install-0.8 Component: cabal-install tool | Version: 1.6.0.1 Severity: normal | Resolution: Keywords: | Difficulty: easy (<4 hours) Ghcversion: 6.8.3 | Platform: ---------------------------------+------------------------------------------ Comment (by mornfall): The attached diff shows a workaround for the problem (based on darcs.cabal, but the idea should be clear). -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/411#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage