[Hackage] #255: avoid rebuilding shared code

#255: avoid rebuilding shared code ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Keywords: Difficulty: normal | Ghcversion: 6.8.2 Platform: | ----------------------------+----------------------------------------------- It seems like a common use of Cabal is to build a library and an executable based on that library. Is there a good way to do this right now? If you specify a stanza for each, the code gets compiled twice (or N+1 times for N executables). That gets annoying if there is a lot of shared code (consider a libdarcs). It would be nice if the executable could just build-depends the library we are currently trying to build. (One could also imagine a version constraint like 'this version' which explicitly says to use the version being built in this cabal file) Thanks! (Eric Kow) -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/255 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#255: avoid rebuilding shared code ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: enhancement | Status: closed Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: duplicate Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Changes (by guest): * status: new => closed * resolution: => duplicate Comment: Argh. This looks like a duplicate of #89 so I will resolve this unless somebody disagrees. (Eric) -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/255#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#255: avoid rebuilding shared code ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: enhancement | Status: closed Priority: normal | Milestone: Component: Cabal library | Version: 1.2.3.0 Severity: normal | Resolution: duplicate Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Comment (by duncan): Right, this is something that'd be nice, to allow the executables to depend on the library within the package. I think that's exactly what #89 is about. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/255#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage