Ticket #255 (closed enhancement: duplicate)
avoid rebuilding shared code
|Reported by:||guest||Owned by:|
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)