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:<br><br>1) swish.cabal is directly under Swish-0.2.1<br>
<br>2) GraphPartitionTest.hs is under Swish-0.2.1/Swish/HaskellRDF <br><br>3) GraphPartitionTest's dependencies are either under HaskellRDF or HaskellUtils<br><br>Hope this helps to make things clearer. I added a "Hs-source-dirs" but that help.<br>
<br>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?<br>
<br>Thanks, <br><br>Vasili<br><br><div class="gmail_quote">On Fri, Jun 5, 2009 at 2:43 PM, Gwern Branwen <span dir="ltr"><<a href="mailto:gwern0@gmail.com">gwern0@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA512<br>
<div><div></div><div class="h5"><br>
On Fri, Jun 5, 2009 at 3:33 PM, Vasili I. Galchin wrote:<br>
> Hello,<br>
><br>
> The following is a fragment in my cabal file:<br>
><br>
><br>
> Executable GraphPartitionTest<br>
> Main-Is: Swish.HaskellRDF.GraphPartitionTest.hs<br>
> Other-modules: Swish.HaskellRDF.GraphPartition<br>
> Swish.HaskellRDF.GraphClass<br>
> Swish.HaskellUtils.ListHelpers<br>
> Swish.HaskellUtils.TestHelpers<br>
><br>
><br>
><br>
> When I try to do a build I get:<br>
><br>
><br>
> Setup: can't find source for Swish in .<br>
><br>
> Cabal/Setup seem to be looking in the current directory for source but as<br>
> you can see I gave "full" paths, i.e. Swish.HaskellRDF* or<br>
> Swish.HaskellUtils*.<br>
><br>
> What I doing wrong?<br>
><br>
><br>
> Regards,<br>
><br>
> Vasili<br>
<br>
</div></div>You need to give more detail.<br>
<br>
For example, is your directory layout like<br>
'./src/Swish/HaskellRDF.../foo.hs'? In that case, Cabal is looking for<br>
'./Swish/HaskellRDF.../foo.hs'. You need to tell it to look in src/<br>
and not ./ with a line like 'hs-source-dirs: src/' etc.<br>
<br>
- --<br>
gwern<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
<br>
iEYEAREKAAYFAkopdUsACgkQvpDo5Pfl1oLbCgCfWI1MZOyWnsyAkra88S/LC506<br>
7oMAoJhv5hDcc1Ypqq0hLncB2t/1Yuby<br>
=ADOt<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br>