[Haskell-cafe] cabal haddock --executables
mrz.vtl at gmail.com
Thu Apr 2 13:36:22 UTC 2015
That is the bug I'm referring to.
Long term the right solution for me would be to have libraries and
executables in different cabal packages, but during initial development it
is nice to have everything in the same tree.
The single tree solution helps also with the build of a related website.
Although you could split that into its own package as well and inject the
results of haddock, coverage, tests etc. from multiple packages into the
generated html page, everything is much easier if it is all in one tree.
I'll try with having separate packages under a toplevel directory with a
Makefile that stitch everything together.
On Thu, Apr 2, 2015 at 9:06 AM, Omari Norman <omari at smileystation.com>
> Are you talking about this bug?
> I'm not sure what you mean by "local" library. My workaround is not to
> have the executables depend on the library that's in the same package.
> That leads to two problems: 1) longer compile times, and 2) duplication in
> the Cabal file.
> To deal with problem 2, I use Cartel:
> which brings its own problems but also solves other problems and so it's
> the best solution I've found.
> But Cartel does not help with problem 1. One solution to that problem is
> to split the executables into different packages. That's no fun either.
> On Wed, Apr 1, 2015 at 9:17 PM, Maurizio Vitale <mrz.vtl at gmail.com> wrote:
>> I'm getting:
>> cabal: internal error when calculating transitive package dependencies.
>> Debug info: 
>> and it seems this has been a problem for quite some while (and it has to
>> do with the executable depending on a local library)
>> is there any known workaround?
>> Haskell-Cafe mailing list
>> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe