<div>You can name the source files whatever you like, and you can associate them with your desired ececutable names in the cabal file.</div><div><br></div><div>Eg. In a cabal file:</div><div><pre style="box-sizing:border-box;word-wrap:normal;font-family:Consolas,'Liberation Mono',Courier,monospace;margin-top:0px;margin-bottom:0px;overflow:scroll;padding:15px 0px;color:rgb(36,41,46);font-size:14px"><div class="line js-file-line" id="LC6" style="box-sizing:border-box;padding:0px 15px">...</div><div class="line js-file-line" id="LC6" style="box-sizing:border-box;padding:0px 15px">executable zshhs</div><div class="line js-file-line" id="LC7" style="box-sizing:border-box;padding:0px 15px"> main-is: ZshClone.hs</div><div class="line js-file-line" id="LC7" style="box-sizing:border-box;padding:0px 15px"> <span style="background-color:rgb(255,255,255)">hs-source-dirs: src</span></div><div class="line js-file-line" id="LC7" style="box-sizing:border-box;padding:0px 15px"><span style="background-color:rgb(255,255,255)"> ...</span></div></pre><div class="gmail_quote"><div>Where "zshhs" is the desired binary output name, and the directory containing this cabal file also contains "src/ZshClone.hs" with your main function.</div><div><br></div><div>On Sun, May 28, 2017 at 14:46 Dennis Raddle <<a href="mailto:dennis.raddle@gmail.com">dennis.raddle@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I got a private reply which helps but it made me think of another question.<div><br></div><div>In the stack demo, there's one executable 'helloworld-exe' which is compiled from app/Main.hs.</div><div><br></div><div>If I'm going to have several executables, what do I call the source files, and how do I control the file name of the executable that gets built?</div><div><br></div><div>Thanks,</div><div>D</div><div><br></div></div>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div></div>