utdemir / hs-nix-template

A Haskell project template that uses Nix and comes with cabal-install, ghcid, ormolu, haskell-language-server and more.
MIT License
103 stars 12 forks source link

Add the 'executable' section conditionally #18

Closed utdemir closed 3 years ago

utdemir commented 3 years ago

Currently hs-nix-template generates a package with a library, executable and a test-suite.

In my experience, users usually create a library than an executable. So, hs-nix-template should prompt the user if an executable section is necessary, and only conditionally create the section and the related app/ directory.