[Haskell-cafe] stack, git, directory structure

Patrick Redmond plredmond at gmail.com
Mon May 29 06:49:11 UTC 2017

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

On Sun, May 28, 2017 at 14:46 Dennis Raddle <dennis.raddle at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170529/eb77221a/attachment.html>

More information about the Haskell-Cafe mailing list