[Haskell-cafe] libraries and executables in cabal

Paul Brauner paul.brauner at loria.fr
Thu Mar 25 09:52:37 EDT 2010


i'm working on a project made of

 - lots of modules
 - one excutable importing these modules
 - another excutable importing these same modules

I don't especially want to expose those modules as libraries, especially
on hackage, since they are meaningless without the executables.

But, if I declare two executables in my .cabal file, cabal will
compile all those modules two times each time I want to compile the

Is there a way to tell cabal that those modules should be considered
part of a "private" library ?


More information about the Haskell-Cafe mailing list