I found out, that my problem can be easly solved with the newest cabal-dev.
If you've got 2 projects: A
and B
and you want to develop them in parallel, its nice to use cabal-dev install A B
- it will build and install them both to the local cabal-dev
repository. If you re-run this command, they will be rebuilt and reinstalled if necessary.
According to the documentation - If you want to register new or override existing package on local cabal-dev hackage, you should use cabal-dev add-source
, which basically copy the source and allows you to install it like it was available on hackage
.