Is it possbile to write a Cabal
configuration file, which contains multiple Library sections
?
I found in the documentation the description of Library section and Executables sections, so it seems, that it is impossible to put more Library section in one Cabal configuration file.
But what should I do if I'm developing several Haskell libraries and several executables
simultaneously and want to compile and test them all?
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
.