You can name the source files whatever you like, and you can associate them with your desired ececutable names in the cabal file.

Eg. In a cabal file:
...
executable zshhs
  main-is: ZshClone.hs
hs-source-dirs: src
...
Where "zshhs" is the desired binary output name, and the directory containing this cabal file also contains "src/ZshClone.hs" with your main function.

On Sun, May 28, 2017 at 14:46 Dennis Raddle <dennis.raddle@gmail.com> wrote:
I got a private reply which helps but it made me think of another question.

In the stack demo, there's one executable 'helloworld-exe' which is compiled from app/Main.hs.

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?

Thanks,
D

_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.