Sorry to bring this thread to live again but… How the **** does cabal
work? I am working in some project with two branches. Between both, there is bearly no changes in the cabal file. Something like this:
master
|
HEAD
\ feature branch
|
commit-1
|
commit-2; adds some modules to .cabal but not dependencies
|
HEAD
I would expect that if I am in feature
branch and build the project, then If I change to master
the only thing that needs to be build is the application itself, but not the dependencies… I am still waiting for many dependencies to be downloaded (just a few of them) and build (many of them).
So how does cabal internally works? is there any sort of whole-programm-compilation? Is there any way to avoid building dependencies which have been build, literally, one hour ago?