cabal executable using local hsc modules

Henning Thielemann lemming at
Mon Mar 25 18:01:21 CET 2013

On Mon, 25 Mar 2013, Andreas Voellmy wrote:

> > This should work since Cabal-1.14. Can you show, how exactly you added 
> > the dependency to the executable?
> I included the two source files, A.hsc and B.hs, and the cabal file in my last email. That shows how I add
> the dependency in the executable section. I have those three files in a single directory.

Your Cabal file does not contain a dependency in the library for the 
executable. It would look like this:

executable B
  main-is: B.hs
  build-depends: foo

More information about the Libraries mailing list