BTW there is no &quot;Test&quot; directory and also no &quot;CLI&quot; directory .... I am pretty familiar with cabal but not as much with &quot;Unix&quot; Makefile. Probably I need to restructure source directory tree ... to have &quot;library&quot; source in one subtree, tests in another CLI executables in a third BUT can I set up cabal files to do recursive directory &quot;visits&quot; like Makefiles?<br>
<br>Vasili<br><br><div class="gmail_quote">On Wed, Jun 3, 2009 at 11:58 PM, Vasili I. Galchin <span dir="ltr">&lt;<a href="mailto:vigalchin@gmail.com">vigalchin@gmail.com</a>&gt;</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;">
Hello,<br><br>    I have cabalizing some &quot;legacy&quot; Haskell source. By &quot;legacy&quot;, I totally don&#39;t mean in a pejorative sense ... code has been designed and written well. I am making good progress ... I have succeeded in building an archive file(library) on a POSIX platform, i.e. Linux. The original author intended to build several executables from this .a file. In addition there are many pairings of .hs/.lhs along with &quot;main&quot; test files. Currently I have only one .cabal file. This is inadequate for the author&#39;s intent:<br>

<br>1) I need to build &quot;n&quot; test executables.<br><br>2) I need to build 1/2 CLI executables.<br><br>I need advice on the cabal front. E.g. should I first run the library .cabal and then run several subsidary .cabal files, e.g. &quot;n&quot;test .cabals and also 1/2 CLI executable .cabals??? I am looking for advice so that I don&#39;t have a clumsy cabal build process/tree!<br>

<br>Thanks, Vasili<br>
</blockquote></div><br>