Closed
Description
Actions:
- Create a project with both a library and executable
cabal clean
cabal configure
cabal build lib:packagename
cabal copy
Expected: command succeeds, copying over the library only, and not the test suite
Actual: errors out since the executable does not exist, e.g.:
Installing library in
/home/vagrant/.cabal/lib/x86_64-linux-ghc-7.10.2/tmp-0.1.0.0-JdaAODhQa7p5WhxMngbYYt
Installing executable(s) in /home/vagrant/.cabal/bin
Setup.hs: dist/build/tmp-exe/tmp-exe: does not exist
This problem could be mitigated by allowing copy
to take a list of components like build
does.