Error accessing data files from package code in Cabal: Unkown symbol

Alfonso Acosta alfonso.acosta at
Wed Jul 2 11:50:26 EDT 2008

On Wed, Jul 2, 2008 at 8:57 AM, Duncan Coutts
<duncan.coutts at> wrote:
> Do not hard code the path. It can change (via a command line flag).
> It's not necessary to hard code anything anyway, just using:
> other-modules: Paths_ForSyDe

I tried to avoid doing it, but without adding dist/build/autogen to
hs-source-dirs  (that is, leaving it as "hs-source-dirs:  src") I get
the following error:

Setup.hs: can't find source for Paths_ForSyDe in ["src"]

> I suggest using other-modules rather than exposed-modules because you
> probably do not need to make that module part of your public api.

Yes, that's what I did.

More information about the Libraries mailing list