
#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