[Haskell-cafe] Cabal "addressibility" problem
Vasili I. Galchin
vigalchin at gmail.com
Fri Jun 5 16:10:04 EDT 2009
for directory structure I Swish-0.2.1/Swish/HaskellRDF and
Swish-0.2.1/Swish/HaskellUtils ... there are deeper directories but that
distract from the discussion ... to make things concete:
1) swish.cabal is directly under Swish-0.2.1
2) GraphPartitionTest.hs is under Swish-0.2.1/Swish/HaskellRDF
3) GraphPartitionTest's dependencies are either under HaskellRDF or
Hope this helps to make things clearer. I added a "Hs-source-dirs" but that
I did a "ruinhaskell Setup -?" to check on options. I don't see any verbose
mode so that when I do "runhaskell Setup build" I can moniitor the progress
of my build for diagnostic purposes! Is there a verbose mode?
On Fri, Jun 5, 2009 at 2:43 PM, Gwern Branwen <gwern0 at gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> On Fri, Jun 5, 2009 at 3:33 PM, Vasili I. Galchin wrote:
> > Hello,
> > The following is a fragment in my cabal file:
> > Executable GraphPartitionTest
> > Main-Is: Swish.HaskellRDF.GraphPartitionTest.hs
> > Other-modules: Swish.HaskellRDF.GraphPartition
> > Swish.HaskellRDF.GraphClass
> > Swish.HaskellUtils.ListHelpers
> > Swish.HaskellUtils.TestHelpers
> > When I try to do a build I get:
> > Setup: can't find source for Swish in .
> > Cabal/Setup seem to be looking in the current directory for source but as
> > you can see I gave "full" paths, i.e. Swish.HaskellRDF* or
> > Swish.HaskellUtils*.
> > What I doing wrong?
> > Regards,
> > Vasili
> You need to give more detail.
> For example, is your directory layout like
> './src/Swish/HaskellRDF.../foo.hs'? In that case, Cabal is looking for
> './Swish/HaskellRDF.../foo.hs'. You need to tell it to look in src/
> and not ./ with a line like 'hs-source-dirs: src/' etc.
> - --
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> -----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe